Moved ViewSpacePosition calculation from fragmenst shader to vertexshader

This commit is contained in:
Teejoon
2016-03-13 00:08:49 +01:00
parent 5146d21173
commit 958850903a
9 changed files with 24 additions and 33 deletions
+1 -4
View File
@@ -1,14 +1,11 @@
#version 430
uniform mat4 M;
uniform mat4 V;
uniform mat4 P;
uniform vec4 Color;
uniform sampler2D texture0;
in VertexData{
vec3 Position;
vec4 ViewSpacePosition;
vec3 Normal;
vec2 TextureCoordinate;
vec4 DiffuseColor;