space-game001/resources/shaders/default_env.vertex
Vladislav Khorev d1cab1f3b3 refactoring
2026-01-09 22:33:46 +03:00

12 lines
226 B
Plaintext

attribute vec3 vPosition;
uniform mat4 ProjectionModelViewMatrix;
varying vec3 dir;
void main(){
vec4 realVertexPos = vec4(vPosition.xyz, 1.0);
gl_Position = ProjectionModelViewMatrix * realVertexPos;
dir = vPosition;
}