Use mip mapping sampler by default, rotate tunnel when not paused

This commit is contained in:
saschawillems 2016-08-15 16:25:54 +02:00
parent 2758c47b86
commit dad0a4d661
3 changed files with 19 additions and 15 deletions

View file

@ -10,8 +10,8 @@ layout (location = 2) in vec3 inNormal;
layout (binding = 0) uniform UBO
{
mat4 projection;
mat4 view;
mat4 model;
vec4 viewPos;
float lodBias;
float samplerIndex;
} ubo;
@ -31,5 +31,5 @@ void main()
outUV.s *= 10.0;
outLodBias = ubo.lodBias;
outSamplerIndex = ubo.samplerIndex;
gl_Position = ubo.projection * ubo.model * vec4(inPos, 1.0);
gl_Position = ubo.projection * ubo.view * ubo.model * vec4(inPos, 1.0);
}