ho3/resources/shaders/env.vertex

14 lines
318 B
Plaintext
Raw Normal View History

2024-06-08 17:55:56 +00:00
attribute vec3 vPosition;
uniform mat4 ProjectionMatrix;
uniform mat3 ModelRotateMatrix;
uniform vec3 ModelTranslateVector;
2024-06-06 13:25:38 +00:00
varying vec3 dir;
void main(){
2024-06-08 17:55:56 +00:00
vec4 realVertexPos = vec4(ModelRotateMatrix * vPosition.xyz + ModelTranslateVector, 1.0);
gl_Position = ProjectionMatrix * realVertexPos;
2024-06-06 13:25:38 +00:00
2024-06-08 20:24:26 +00:00
dir = vPosition;
2024-06-06 13:25:38 +00:00
}