Fix particle depth.

This commit is contained in:
Joshua Yanovski 2020-08-12 22:27:14 +02:00
parent f51dfdeb44
commit 0a4218ed9d

View File

@ -191,5 +191,4 @@ void main() {
gl_Position = gl_Position =
all_mat * all_mat *
vec4(f_pos, 1); vec4(f_pos, 1);
gl_Position.z = -1000.0 / (gl_Position.z + 10000.0);
} }