Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing a cube map to a shader. #195

Open
roek2 opened this issue May 6, 2016 · 3 comments
Open

Passing a cube map to a shader. #195

roek2 opened this issue May 6, 2016 · 3 comments

Comments

@roek2
Copy link

roek2 commented May 6, 2016

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?

@csvurt
Copy link
Contributor

csvurt commented May 9, 2016

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

@roek2
Copy link
Author

roek2 commented Jun 23, 2016

Cool, i figured this was the case, Is cube map support something that is planned for later down the line?

@csvurt
Copy link
Contributor

csvurt commented Jun 24, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants