-
-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UPBGE: Fix color in wireframe render.
Previously the vertex color pointer was alwyas set in VBO and VA mode and the dummy instancing fragment shader was useing a white color. To fix this we changed the color in the shader to vec4(0, 0, 0, 1). About VA and VBO we add condition to set the vertex color pointer, if it's in wireframe it does nothing. For the VBO is reqested a new argument in function Bind and Unbind to now the drawing mode.
- Loading branch information
1 parent
3ffb941
commit 6f1c592
Showing
5 changed files
with
33 additions
and
24 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
source/blender/gpu/shaders/gpu_shader_basic_instancing_frag.glsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
void main() | ||
{ | ||
gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0); | ||
gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters