mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
[rs] Remove implicit conversion hello-triangle shader.vert
This commit is contained in:
parent
92e75723d5
commit
25b7cea64c
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user