some shader work and improved mantle feel

This commit is contained in:
2026-01-11 17:09:58 +01:00
parent f2a39316ba
commit 1eb65d1520
13 changed files with 65 additions and 25 deletions

View File

@@ -185,7 +185,7 @@ void fragment() {
}
void light() {
float lambert = dot(NORMAL, LIGHT);
float halfLambert = pow(lambert*0.5 + 0.5, 2);
DIFFUSE_LIGHT = halfLambert * ATTENUATION * LIGHT_COLOR / PI;
float lambert = clamp(dot(NORMAL, LIGHT), 0.0, 1.0);
float halfLambert = pow(lambert*0.5 + 0.5, 5);
DIFFUSE_LIGHT += halfLambert * ATTENUATION * LIGHT_COLOR / PI;
}