Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinmera committed Jan 16, 2025
1 parent 0a8d13d commit 50a4f8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion debug.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,6 @@ void main(){
// Basic phong lighting using view-space calculations.
float diffuse = dot(normal, -light);
float specular = clamp(pow(max(dot(vec3(0,0,1), reflect(light, normal)), 0.0), 32), 0.0, 0.5);
float light = mix(1.0, clamp(diffuse + 0.2, 0.2, 0.9), lighting);
float light = mix(1.0, clamp(diffuse*0.7 + 0.2, 0.2, 0.9), lighting);
color = vec4(v_color * light + (specular * lighting), 1);
}")

0 comments on commit 50a4f8c

Please sign in to comment.