Fix lovr.graphics.skybox()

This commit is contained in:
mcc 2020-02-17 18:19:05 -05:00
parent 18dcb07b98
commit 6536216aa2
1 changed files with 2 additions and 2 deletions

View File

@ -338,8 +338,8 @@ const char* lovrPanoFragmentShader = ""
" vec3 direction = texturePosition[lovrViewID]; \n"
" float theta = acos(-direction.y / length(direction)); \n"
" float phi = atan(direction.x, -direction.z); \n"
" vec2 uv = vec2(.5 + phi / (2. * PI), theta / PI); \n"
" return lovrGraphicsColor * texture(lovrDiffuseTexture, uv); \n"
" vec2 cubeUv = vec2(.5 + phi / (2. * PI), theta / PI); \n"
" return lovrGraphicsColor * texture(lovrDiffuseTexture, cubeUv); \n"
"}";
const char* lovrFontFragmentShader = ""