Forums > MaxMSP

Shaders inside objects


dbm
March 6, 2013 | 4:51 pm

Dear all,

I’ve started to use shaders with objects in Jitter, but I cannot find a way to shade the "inside" of an object… don’t know if that makes sense, but whenever I use the shader it applies to the exterior face of the object. I’m trying to create an environment for a scene (a skybox). How do I apply the shader to the inside of say, a giant sphere?

Thanks!


March 6, 2013 | 10:30 pm

hi dbm.
it depends on the particular shader, but most are written for front-facing polygons.
so you won’t have much success with this technique i’m afraid, unless you’re writing your own custom shaders.

if you want to see the back faces (inside) of a sphere, you can simply set @cull_face 2 on your jit.gl.gridshape.

but you should also check out the jit.gl.skybox object, which may satisfy your needs.


Viewing 2 posts - 1 through 2 (of 2 total)