Meshroom/meshroom/ui/qml/Viewer3D/Materials/shaders/SphericalHarmonics.vert
Yann Lanthony 3ae95869bd [ui] Viewer3D: introduce SphericalHarmonics shader + display mode
Add experimental render mode to display model normals or shading based on spherical harmonics coefficients
2020-05-25 22:47:09 +02:00

16 lines
253 B
GLSL

#version 330 core
in vec3 vertexPosition;
in vec3 vertexNormal;
out vec3 normal;
uniform mat4 modelView;
uniform mat3 modelViewNormal;
uniform mat4 mvp;
void main()
{
normal = vertexNormal;
gl_Position = mvp * vec4( vertexPosition, 1.0 );
}