space-game001/shaders/env_sky.vertex
Vladislav Khorev af550f56a7 Cool working
2025-12-13 23:17:03 +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;
}