Skip to content
Snippets Groups Projects
Verified Commit a7b23262 authored by Tobias Frisch's avatar Tobias Frisch
Browse files

[#105] Removed branching from vertex shader

parent 8c34b3e9
No related branches found
No related tags found
1 merge request!88Resolve "Indirect Draw"
Pipeline #27087 failed
...@@ -19,6 +19,9 @@ void main() ...@@ -19,6 +19,9 @@ void main()
passNormal = inNormal; passNormal = inNormal;
passUV = inUV; passUV = inUV;
passTextureIndex = (gl_VertexIndex / 4);
/*
if(inNormal.x > 0.9) if(inNormal.x > 0.9)
passTextureIndex = 0; passTextureIndex = 0;
...@@ -36,4 +39,5 @@ void main() ...@@ -36,4 +39,5 @@ void main()
if(inNormal.z < -0.9) if(inNormal.z < -0.9)
passTextureIndex = 5; passTextureIndex = 5;
*/
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment