StanEpp / OpenGL_ParticleSystem

MIT License
128 stars 33 forks source link

gs.glsl improvements #3

Closed martty closed 9 years ago

martty commented 9 years ago

Hey! Really liked your particle sim, tried it out myself! Here are my improvements to your geometry shader code: less normalizations and matrix - vector multiplications. I took out the incrementing of the gl_Position var, since it seems like it was left in. Seems to give the same output as the original code, but don't take my word for it :)

StanEpp commented 9 years ago

Yeah you're right, there are some unnecessary normalizations and matrix operations. =) Thanks!