summaryrefslogtreecommitdiffhomepage
path: root/examples/others/resources
diff options
context:
space:
mode:
authorRay <[email protected]>2018-12-16 00:35:30 +0100
committerRay <[email protected]>2018-12-16 00:35:30 +0100
commitf9e4faff09c59b18ca291413a621eae33d64a8c3 (patch)
treea6e78361e52883d4875179e7940497e335995641 /examples/others/resources
parent7d81e673ed7f399305ae12f69267190ade93064d (diff)
downloadraylib-f9e4faff09c59b18ca291413a621eae33d64a8c3.tar.gz
raylib-f9e4faff09c59b18ca291413a621eae33d64a8c3.zip
Review standard lighting sample -WIP-
It's broken.
Diffstat (limited to 'examples/others/resources')
-rw-r--r--examples/others/resources/shaders/glsl330/standard.vs8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/others/resources/shaders/glsl330/standard.vs b/examples/others/resources/shaders/glsl330/standard.vs
index 7fbdbf5e..e2022201 100644
--- a/examples/others/resources/shaders/glsl330/standard.vs
+++ b/examples/others/resources/shaders/glsl330/standard.vs
@@ -1,14 +1,14 @@
#version 330
in vec3 vertexPosition;
-in vec3 vertexNormal;
in vec2 vertexTexCoord;
+in vec3 vertexNormal;
in vec4 vertexColor;
out vec3 fragPosition;
out vec2 fragTexCoord;
-out vec4 fragColor;
out vec3 fragNormal;
+out vec4 fragColor;
uniform mat4 mvp;
@@ -16,8 +16,8 @@ void main()
{
fragPosition = vertexPosition;
fragTexCoord = vertexTexCoord;
- fragColor = vertexColor;
fragNormal = vertexNormal;
-
+ fragColor = vertexColor;
+
gl_Position = mvp*vec4(vertexPosition, 1.0);
} \ No newline at end of file