Vector w-component [skip ci]
This commit is contained in:
parent
8d06cc563a
commit
8e6e95b5f2
2 changed files with 2 additions and 2 deletions
|
|
@ -40,6 +40,6 @@ void main()
|
||||||
vec4 pos = modelView * vec4(inPos, 0.0);
|
vec4 pos = modelView * vec4(inPos, 0.0);
|
||||||
outNormal = mat3(ubo.model) * inNormal;
|
outNormal = mat3(ubo.model) * inNormal;
|
||||||
vec3 lPos = mat3(ubo.model) * ubo.lightPos.xyz;
|
vec3 lPos = mat3(ubo.model) * ubo.lightPos.xyz;
|
||||||
outLightVec = lPos - (ubo.model * vec4(inPos, 0.0)).xyz;
|
outLightVec = lPos - (ubo.model * vec4(inPos, 1.0)).xyz;
|
||||||
outViewVec = -(ubo.model * vec4(inPos, 0.0)).xyz;
|
outViewVec = -(ubo.model * vec4(inPos, 1.0)).xyz;
|
||||||
}
|
}
|
||||||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue