Refraction fix

fix the refraction. hopefully.
This commit is contained in:
Xonk
2023-05-09 16:16:41 -04:00
parent 52466e8e35
commit 82668ef211
7 changed files with 32 additions and 19 deletions

View File

@ -869,7 +869,7 @@ void main() {
if ( z >= 1.) { //sky
vec3 background = vec3(0.0);
background += stars(vec3(np3.x,abs(np3.y),np3.z)) * 5.0;
background += stars(vec3(np3.x,abs(np3.y),np3.z)) * 5.0 ;
#ifndef ambientLight_only
background += drawSun(dot(lightCol.a * WsunVec, np3),0, DirectLightColor,vec3(0.0)) ; // sun