From c8131ea95846f76fb196a78ce9c9b09aeb15736c Mon Sep 17 00:00:00 2001 From: jussi Date: Sat, 25 Jan 2025 17:36:29 +0200 Subject: Atlas texture repeat example. --- examples/resources/shaders/glsl330/base.vs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'examples/resources/shaders/glsl330/base.vs') diff --git a/examples/resources/shaders/glsl330/base.vs b/examples/resources/shaders/glsl330/base.vs index c6e94f6..b29bed8 100644 --- a/examples/resources/shaders/glsl330/base.vs +++ b/examples/resources/shaders/glsl330/base.vs @@ -10,16 +10,20 @@ in vec4 vertexColor; uniform mat4 mvp; // Output vertex attributes (to fragment shader) +out vec3 fragPosition; out vec2 fragTexCoord; +out vec3 fragNormal; out vec4 fragColor; // NOTE: Add here your custom variables void main() { // Send vertex attributes to fragment shader + fragPosition = vertexPosition; fragTexCoord = vertexTexCoord; + fragNormal = vertexNormal; fragColor = vertexColor; // Calculate final vertex position gl_Position = mvp * vec4( vertexPosition, 1.0 ); -} \ No newline at end of file +} -- cgit v1.2.3