sky and water domes using shaders

This commit is contained in:
2020-08-29 14:34:21 +02:00
parent e8e679a442
commit 654fd08863
8 changed files with 150 additions and 40 deletions
+6
View File
@@ -0,0 +1,6 @@
varying vec3 vWorldPosition;
void main() {
vec4 worldPosition = modelMatrix * vec4( position, 1.0 );
vWorldPosition = worldPosition.xyz;
gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
}