I've spent some time trying to figure out how to create cubemap in kha (https://learnopengl.com/#!Advanced-OpenGL/Cubemaps) and realized that its not possible. On IRC I was suggested to use g4.createCubeMap, but this method doesn't do anything (at least for html5 target). I can't find any piece of code where GL_TEXTURE_CUBE_MAP is used, and while shader that use samplerCube compiles with no problems it seams that there's no way to actually bind to GL_TEXTURE_CUBE_MAP and make use of that sampler. Am I missing something?
-
Creating cube map
I would if I had some understanding of the idea behind CubeMap class (http://api.kha.technology/kha/graphics4/CubeMap.html) and createCubeMap method (http://api.kha.technology/kha/graphics4/Graphics.html#createCubeMap). Maybe @Robert could give some hints