Skip to content

Commit

Permalink
Update point_instance.frag
Browse files Browse the repository at this point in the history
  • Loading branch information
wkjarosz committed Dec 26, 2023
1 parent 0b8e233 commit 65a29b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/shaders/point_instance.frag
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ void main()
float radius2 = dot(v_texcoord, v_texcoord);
if (radius2 > 1.0)
discard;
vec3 n = vec3(v_texcoord, sqrt(1.0 - radius2));
vec3 n = rotation * vec3(v_texcoord, sqrt(1.0 - radius2));
vec3 sh = Irradiance_SphericalHarmonics(n);
sh = mix(mix(sh, vec3(dot(sh, vec3(1.0 / 3.0))), 0.5), vec3(1.0), 0.25);
fo_FragColor = vec4(sh * color * alpha, alpha);
Expand Down

0 comments on commit 65a29b2

Please sign in to comment.