Code-Cleanup: All samples now use the camera class and it's matrices
Cleaned up base class
This commit is contained in:
parent
27d5abc038
commit
ab38f8b150
42 changed files with 234 additions and 396 deletions
|
|
@ -7,6 +7,7 @@ layout (location = 3) in vec3 inNormal;
|
|||
layout (binding = 0) uniform UBO
|
||||
{
|
||||
mat4 projection;
|
||||
mat4 view;
|
||||
mat4 model;
|
||||
vec4 lightPos;
|
||||
} ubo;
|
||||
|
|
@ -20,8 +21,8 @@ void main()
|
|||
{
|
||||
outNormal = inNormal;
|
||||
outColor = inColor;
|
||||
gl_Position = ubo.projection * ubo.model * inPos;
|
||||
outEyePos = vec3(ubo.model * inPos);
|
||||
gl_Position = ubo.projection * ubo.view * ubo.model * inPos;
|
||||
outEyePos = vec3(ubo.view * ubo.model * inPos);
|
||||
outLightVec = normalize(ubo.lightPos.xyz - outEyePos);
|
||||
|
||||
// Clip against reflection plane
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue