Files
vr-poser/assets/shaders/cel.vert
2026-03-15 22:03:30 -04:00

20 lines
599 B
GLSL

#version 130
// OSG binds these automatically via Program::addBindAttribLocation
// or via the fixed-function compatibility aliases in core profile.
// Using built-in compatibility varyings is the safest approach with OSG 3.6.
varying vec3 v_normalVS;
varying vec3 v_posVS;
varying vec2 v_uv;
varying vec4 v_color;
void main() {
vec4 posVS = gl_ModelViewMatrix * gl_Vertex;
v_posVS = posVS.xyz;
v_normalVS = normalize(gl_NormalMatrix * gl_Normal);
v_uv = gl_MultiTexCoord0.xy;
v_color = gl_Color;
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
}