libgarbage: fix default lighting being too bright
This commit is contained in:
parent
bf23886a73
commit
a19707240a
1 changed files with 2 additions and 2 deletions
|
@ -18,11 +18,11 @@ float3 lRenderSky(float3 ray_dir, float3 sun_dir) {
|
||||||
}
|
}
|
||||||
|
|
||||||
//calculate sky light
|
//calculate sky light
|
||||||
float3 lSky(float3 normal, float3 sky_col = float3(0.5, 0.8, 0.9)) {
|
float3 lSky(float3 normal, float3 sky_col = float3(0.1, 0.16, 0.18)) {
|
||||||
return sky_col * (0.5 + 0.5 * normal.y);
|
return sky_col * (0.5 + 0.5 * normal.y);
|
||||||
}
|
}
|
||||||
|
|
||||||
float lSun(float3 normal, float3 sun_dir, float3 sun_col = float3(7, 5.5, 3)) {
|
float lSun(float3 normal, float3 sun_dir, float3 sun_col = float3(1, 0.78, 0.43)) {
|
||||||
return sun_col * max(dot(normal, sun_dir), 0);
|
return sun_col * max(dot(normal, sun_dir), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue