diff options
| author | Irene Knapp <ireneista@irenes.space> | 2026-07-18 04:10:00 -0700 |
|---|---|---|
| committer | Irene Knapp <ireneista@irenes.space> | 2026-07-18 04:10:00 -0700 |
| commit | cbfe9b855c11b1ef603b7212c244e089b4461753 (patch) | |
| tree | 4ae0200ff692fffb19d637caf9720e4643d8c844 /shaders/shader.vert | |
| parent | 0371c8f086008d604dddfe92d021f8ecfe398436 (diff) | |
draw a second square
in order to test the depth buffer, which does not yet exist Force-Push: yes Change-Id: Ibb4c279ff8b83ad9c0c37897f623631c4e342fb0
Diffstat (limited to 'shaders/shader.vert')
| -rw-r--r-- | shaders/shader.vert | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shaders/shader.vert b/shaders/shader.vert index b14c94b..c07575a 100644 --- a/shaders/shader.vert +++ b/shaders/shader.vert @@ -12,7 +12,7 @@ layout(binding = 0) uniform UniformBlock { mat4 projection; } uniform_block; -layout(location = 0) in vec2 inPosition; +layout(location = 0) in vec3 inPosition; layout(location = 1) in vec3 inColor; layout(location = 2) in vec2 inTextureCoordinate; @@ -85,7 +85,7 @@ vec4 apply_all_transforms(vec3 position) { void main() { - gl_Position = apply_all_transforms(vec3(inPosition, 0.0)); + gl_Position = apply_all_transforms(inPosition); fragmentColor = inColor; fragmentTextureCoordinate = inTextureCoordinate; } |