Restore proper mip handling to skybox

This commit is contained in:
Brad Davis 2016-09-20 19:48:49 -07:00
parent 5dbaa671ca
commit 6711b9c417

View file

@ -48,7 +48,7 @@ void main(void) {
// blend is only set if there is a cubemap
if (skybox.color.a > 0.0) {
color = textureLod(cubeMap, coord, 0).rgb;
color = texture(cubeMap, coord).rgb;
if (skybox.color.a < 1.0) {
color *= skybox.color.rgb;
}