Remove gradiant from cel shader

This commit is contained in:
austin 2022-09-16 23:42:52 -04:00
parent 9ccea0a9b5
commit 89eeb41ec9
2 changed files with 2 additions and 7 deletions

View File

@ -126,12 +126,7 @@ float calcLightIntensityDir(vec3 normal){
vec3 lightDir = normalize(-dLDirection);
// diffuse shading
float diff = max(dot(normal, lightDir), 0.0);
//clamp for cel shading
// if(diff > 0.1){
// diff = 0.3;
// } else {
// diff = diff * 3.0;
// }
return diff;
}

View File

@ -130,7 +130,7 @@ float calcLightIntensityDir(vec3 normal){
if(diff > 0.1){
diff = 0.3;
} else {
diff = diff * 3.0;
diff = 0.0;
}
return diff;
}