SPIRV-Cross/reference/shaders/vert/ubo.vert
Hans-Kristian Arntzen e67f6f85a4 Defer parenthesis generation until needed.
Previously, we would generate parentheses proactively when generating
binary ops, however, this leads to uglier code and hits warnings in
compilers when used as a conditional.
2016-12-05 10:56:54 +01:00

18 lines
211 B
GLSL

#version 310 es
layout(binding = 0, std140) uniform UBO
{
mat4 mvp;
} _16;
in vec4 aVertex;
out vec3 vNormal;
in vec3 aNormal;
void main()
{
gl_Position = _16.mvp * aVertex;
vNormal = aNormal;
}