mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 22:41:07 +01:00
Remove implicit conversion hello-triangle shader.vert
This commit is contained in:
1 parent
e17d4f5c1c
commit
ee220edce0
1 file changed
+3
-2
@@ -5,6 +5,7 @@ out gl_PerVertex {
|
||||
};
|
||||
|
||||
void main() {
|
||||
vec2 position = vec2(gl_VertexIndex, (gl_VertexIndex & 1) * 2) - 1;
|
||||
gl_Position = vec4(position, 0.0, 1.0);
|
||||
float x = float(gl_VertexIndex - 1);
|
||||
float y = float(((gl_VertexIndex & 1) * 2) - 1);
|
||||
gl_Position = vec4(x, y, 0.0, 1.0);
|
||||
}
|
||||
Reference in new issue
Block a user