Update globe files

This commit is contained in:
2021-10-02 20:33:41 +02:00
parent 2dc1393dc2
commit 717d100d76
34 changed files with 97 additions and 105 deletions

View File

@@ -0,0 +1,24 @@
precision highp float;
attribute vec3 normal;
attribute vec3 position;
attribute vec2 uv;
uniform mat4 uMVMatrix;
uniform mat4 uMMatrix;
uniform mat4 uPMatrix;
uniform mat4 uNormalMatrix;
uniform float uCameraOffsetY;
varying vec2 vUv;
varying vec3 vNormal;
varying vec3 vPos;
void main(void) {
vUv = uv;
vNormal = (uNormalMatrix * vec4(normal, 1.)).rgb;
vPos = (uMMatrix * vec4(position, 1.)).rgb;
gl_Position = uPMatrix * uMVMatrix * vec4(position, 1.0);
gl_Position[1] += uCameraOffsetY * gl_Position.w;
}