SPIRV-Cross/reference/shaders/vert/basic.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
200 B
GLSL

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