Jarvis, Optimise my shit

This commit is contained in:
Halbear 2026-09-25 23:37:22 +01:00
parent d1abde919d
commit 9424b29d0a
50 changed files with 1469 additions and 1232 deletions

View file

@ -65,7 +65,7 @@ void main()
} else {
albedo = material.diffuseColor;
}
if (albedo.a < 0.5 || Translucency > 0.5 || Opacity < 0.5) {
if (albedo.a < 0.5 || Translucency > 0.95 || Opacity < 0.5) {
discard;
}
@ -77,5 +77,5 @@ void main()
float dy = dFdy(depth);
moment2 += 0.25 * (dx * dx + dy * dy);
outFragColor = vec2(moment1, moment2);
outFragColor = vec2(moment1, moment2) * (1 - Translucency);
}