summaryrefslogtreecommitdiff
path: root/examples/resources/shaders/glsl330/base.vs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/resources/shaders/glsl330/base.vs')
-rw-r--r--examples/resources/shaders/glsl330/base.vs6
1 files changed, 5 insertions, 1 deletions
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
+}