ADD Colored shadows

This commit is contained in:
Xonk
2024-03-20 21:44:25 -04:00
parent cc40afe271
commit 6576c835dc
13 changed files with 266 additions and 195 deletions

View File

@ -328,7 +328,7 @@ void main() {
if (TranslucentShader.a > 0.0){
#ifdef Glass_Tint
if(albedo.a > 0.2 && !iswater) color = color*albedo.rgb + color * clamp(pow(1.0-luma(albedo.rgb),20.),0.0,1.0);
if(albedo.a > 0.01) color *= normalize(albedo.rgb+0.0001)*0.9+0.1;
#endif
color = color*(1.0-TranslucentShader.a) + TranslucentShader.rgb;