mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-23 12:37:45 +00:00
Renderer: Add a slight ambient to not make shadows pitch black
This commit is contained in:
parent
26c7fad3a0
commit
02ce1c2f51
2 changed files with 1 additions and 1 deletions
|
@ -41,5 +41,5 @@ void main() {
|
||||||
|
|
||||||
float diff = max(dot(norm, lightDir), 0.0);
|
float diff = max(dot(norm, lightDir), 0.0);
|
||||||
|
|
||||||
outColor = vec4(diffuse * diff, 1.0);
|
outColor = vec4(diffuse * (diff + 0.1), 1.0);
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Loading…
Add table
Reference in a new issue