From 40bd889e67d6f9fb4ce837fcda4ddf5a34c54b47 Mon Sep 17 00:00:00 2001 From: Irene Knapp Date: Sat, 18 Jul 2026 03:15:56 -0700 Subject: draw the image wow yay :) Force-Push: yes Change-Id: I7053ec3a7ed7b46e9c9d1260fd0f73b398b798af --- shaders/shader.vert | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'shaders/shader.vert') diff --git a/shaders/shader.vert b/shaders/shader.vert index d72c6a8..b14c94b 100644 --- a/shaders/shader.vert +++ b/shaders/shader.vert @@ -14,8 +14,10 @@ layout(binding = 0) uniform UniformBlock { layout(location = 0) in vec2 inPosition; layout(location = 1) in vec3 inColor; +layout(location = 2) in vec2 inTextureCoordinate; -layout(location = 0) out vec3 vertexColor; +layout(location = 0) out vec3 fragmentColor; +layout(location = 1) out vec2 fragmentTextureCoordinate; // ///////////////// @@ -84,6 +86,7 @@ vec4 apply_all_transforms(vec3 position) { void main() { gl_Position = apply_all_transforms(vec3(inPosition, 0.0)); - vertexColor = inColor; + fragmentColor = inColor; + fragmentTextureCoordinate = inTextureCoordinate; } -- cgit 1.4.1