Orient the sky texture more correctly.

This commit is contained in:
Quantum 2018-08-27 23:21:34 -04:00
parent d41fcb7d7f
commit 168434ce37
2 changed files with 4 additions and 4 deletions

View file

@ -5,5 +5,5 @@ out vec4 o_fragColor;
uniform sampler2D u_skysphere; uniform sampler2D u_skysphere;
void main() { void main() {
o_fragColor = vec4(texture(u_skysphere, v_uv).rgb, 1); o_fragColor = vec4(texture(u_skysphere, vec2(1 - v_uv.s, v_uv.t)).rgb, 1);
} }

View file

@ -302,9 +302,9 @@
"texture": ["sky.jpg", "sky_large.jpg", "sky_medium.jpg", "sky_small.jpg"], "texture": ["sky.jpg", "sky_large.jpg", "sky_medium.jpg", "sky_small.jpg"],
"rotation": 0, "rotation": 0,
"division": 30, "division": 30,
"pitch": 90, "pitch": -150.19,
"yaw": 30, "yaw": 0,
"roll": -90 "roll": 0
}, },
"asteroids": ["asteroids/01.obj", "asteroids/02.obj", "asteroids/03.obj"], "asteroids": ["asteroids/01.obj", "asteroids/02.obj", "asteroids/03.obj"],
"start": { "start": {