Re: Shader help – recreating GL_SPHERE_MAP

Forums > Jitter > Shader help – recreating GL_SPHERE_MAP
Jan 04 2011 | 8:23 pm

Thanks Robert – that seems to have solved it.

The only remaining difference between this shader and @tex_map 2 is that the shader appears to flip the texture along the y axis. I’m getting around this with jit.dimmap but I’m sure it could be done more efficiently in the shader itself.

Is my understanding correct that with @rectangle 0 coerces incoming rectangular matrices to be square?

I’m attaching the corrected code in case this is useful to anyone else. Now if only supported multi-texturing I would be a very happy camper!

  1. testshader.jxs

Subscribe to the Cycling ’74 Weekly Newsletter

Let us tell you about notable Max projects, obscure facts, and creative media artists of all kinds.

* indicates required