You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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:
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?
The text was updated successfully, but these errors were encountered: