So i'm trying to write a skybox and an environment shader, but im having some issues finding out how cubemaps work with Kha and G4. I've searched high and low in the documentation, source code and examples. But i have not found a solution yet..
myCubemap = CubeMap.createRenderTarget( ... ) is the only method available it seems, and im not sure how to actually set the 6 images you need like you can in WebGL using
I guess you would use
g4.setCubeMap(pipeline.getTextureUnit("cubemap"), myCubemap) to the set uniforms... and i got this far but not further.. I've seen that Armoury3D does use skyboxes do im guessing it should be possible?
If anybody has some insight into this i would really appreciate it!
(Im still learning G4 workflows, so bear with me :p)