Fixed sky lighting intensity and color
This commit is contained in:
parent
486068b2af
commit
dfeb7293b2
@ -35,7 +35,7 @@ void main(){
|
|||||||
a_color = vec4(pow(light, vec3(u_gamma)),1.0f);
|
a_color = vec4(pow(light, vec3(u_gamma)),1.0f);
|
||||||
a_texCoord = v_texCoord;
|
a_texCoord = v_texCoord;
|
||||||
|
|
||||||
vec3 skyLightColor = texture(u_cubemap, vec3(-0.4f, 0.05f, -0.4f)).rgb;
|
vec3 skyLightColor = texture(u_cubemap, vec3(0.4f, 0.0f, 0.4f)).rgb;
|
||||||
skyLightColor.g *= 0.9;
|
skyLightColor.g *= 0.9;
|
||||||
skyLightColor.b *= 0.8;
|
skyLightColor.b *= 0.8;
|
||||||
skyLightColor = min(vec3(1.0), skyLightColor*SKY_LIGHT_MUL);
|
skyLightColor = min(vec3(1.0), skyLightColor*SKY_LIGHT_MUL);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user