fix angle in imposters sampling
@@ -26,7 +26,7 @@ void main()
mat3 rot = mat3(c, 0.0, s,
0.0, 1.0, 0.0,
-s, 0.0, c);
- float angle = mod((s > 0.0 ? acos(c) : 2.0 * 3.1415926 - acos(c)) + theta, 3.1415926);
+ float angle = mod((s > 0.0 ? acos(c) : 2.0 * 3.1415926 - acos(c)) + theta, 2.0 * 3.1415926);
t = angle / (2.0 * 3.1415926);
gl_Position = camera.viewProjection * vec4(rot * position.xyz + center, 1.);
}
