How to pass in a cubemap to a PShader?

I've been importing Shadertoy shaders into processing. But the one I'm working on uses a samplerCube texture. I have the 6 images as pngs for the cube map. How to I build this and pass it into the shader's cubemap uniform ?

I've tried hacking the DomeProjection example, but no joy.

Any help welcome!

Glenn.

Answers

Sign In or Register to comment.