We are about to switch to a new forum software. Until then we have removed the registration on this forum.
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
okay I've managed to build a cubemap using this code, http://stackoverflow.com/questions/36444975/trying-to-port-a-glsl-glass-shader-to-processing-3-0
but it won't compile the frag shader because of this line..not sure why..
vec4 ref = textureCube(cubemap, normalize(reflect(rd, n)));