Open roek2 opened 8 years ago
Hi,
cubemap support is one of those things that we just haven't gotten to yet. You would have to write your own environment map shader, preferably one that does spherical environment mapping since that only requires one texture. You can find some more information on how to create a shader in the specification:
http://xml3d.org/xml3d/specification/latest/#custom-materials
Cool, i figured this was the case, Is cube map support something that is planned for later down the line?
Sort of. We're working on a successor to XML3D right now that's based on web components. There will be a lot of cool stuff coming out of that. As soon as we have all the basics in place we'll open a new repository here on Github and put this 'old XML3D' in maintenance mode.
We'll also offer a compatibility layer for existing XML3D scenes so you won't have to worry about redoing everything from scratch.
I'm trying to create a scene with environment mapping but I can't find any references for passing a cube map into a shader with xml3d. Usually a cube map is made of six individual images that are loaded for the samplerCube but i cant find any example of loading anything more than a single texture. Are sampler cubes supported? Are there any examples of this?