Updated bloom example shaders

This commit is contained in:
saschawillems 2017-01-07 20:45:17 +01:00
parent bfd0a2e0b4
commit 927660680d
10 changed files with 19 additions and 23 deletions

View file

@ -8,6 +8,7 @@ layout (location = 0) in vec3 inPos;
layout (binding = 0) uniform UBO
{
mat4 projection;
mat4 view;
mat4 model;
} ubo;
@ -22,5 +23,5 @@ out gl_PerVertex
void main()
{
outUVW = inPos;
gl_Position = ubo.projection * ubo.model * vec4(inPos.xyz, 1.0);
gl_Position = ubo.projection * ubo.view * ubo.model * vec4(inPos.xyz, 1.0);
}