summary refs log tree commit diff stats
path: root/shaders/final.vertex
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2018-02-07 14:22:45 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2018-02-07 14:22:45 -0500
commitda454bb943929ae649c09ca948e7c83644c35712 (patch)
tree1358ea11b33b17b41c8073df9ddb6228a617f831 /shaders/final.vertex
parent97d7fb425da906947cc45e11fadb35f708da50d6 (diff)
parent1e8de01d3704c584e43e1b84947487c2aaddb7d7 (diff)
downloadtherapy-da454bb943929ae649c09ca948e7c83644c35712.tar.gz
therapy-da454bb943929ae649c09ca948e7c83644c35712.tar.bz2
therapy-da454bb943929ae649c09ca948e7c83644c35712.zip
Merge branch 'master' into es-rewrite
Diffstat (limited to 'shaders/final.vertex')
-rw-r--r--shaders/final.vertex2
1 files changed, 1 insertions, 1 deletions
diff --git a/shaders/final.vertex b/shaders/final.vertex index ed6079f..adf266d 100644 --- a/shaders/final.vertex +++ b/shaders/final.vertex
@@ -23,6 +23,6 @@ void main()
23 mat3 invWorldRot = transpose(mat3(worldMat[0].xyz, worldMat[1].xyz, worldMat[2].xyz)); 23 mat3 invWorldRot = transpose(mat3(worldMat[0].xyz, worldMat[1].xyz, worldMat[2].xyz));
24 vec3 worldPos = (worldMat * vec4(vertexPosition_modelspace,1)).xyz; 24 vec3 worldPos = (worldMat * vec4(vertexPosition_modelspace,1)).xyz;
25 25
26 camDirIn = invWorldRot * (vec3(2,0,0) - worldPos); 26 camDirIn = invWorldRot * (vec3(3.75,0,0) - worldPos);
27 lightDirIn = invWorldRot * (Tuning_LightPos - worldPos); 27 lightDirIn = invWorldRot * (Tuning_LightPos - worldPos);
28} 28}