Vector w-component [skip ci]

This commit is contained in:
saschawillems 2017-04-07 19:57:27 +02:00
parent 8d06cc563a
commit 8e6e95b5f2
2 changed files with 2 additions and 2 deletions

View file

@ -40,6 +40,6 @@ void main()
vec4 pos = modelView * vec4(inPos, 0.0);
outNormal = mat3(ubo.model) * inNormal;
vec3 lPos = mat3(ubo.model) * ubo.lightPos.xyz;
outLightVec = lPos - (ubo.model * vec4(inPos, 0.0)).xyz;
outViewVec = -(ubo.model * vec4(inPos, 0.0)).xyz;
outLightVec = lPos - (ubo.model * vec4(inPos, 1.0)).xyz;
outViewVec = -(ubo.model * vec4(inPos, 1.0)).xyz;
}