-
Notifications
You must be signed in to change notification settings - Fork 258
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
how to create a cubemap rendertarget #176
Comments
you can only render to one face of a cube map at a time so your target should be one of the faces which means you need to create the cubemap separately. Example
Working example: https://jsgist.org/?src=58469d1247b4a347b60d6efd535b981f |
thanks! but got one question: If I want to get the depth buffer texture of the cubemap rendertarget, these buffers will not be a cubetexture, right? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I want to render to a cubemap, I use this attachments to create cube rendertarget but seems not working.
attachments = [ { internalFormat: Constants.RGBA, format: Constants.RGBA, type: type, min: this.minFilter, mag: this.maxFilter, wrap: Constants.CLAMP_TO_EDGE, target: Constants.TEXTURE_CUBE_MAP } ];
The text was updated successfully, but these errors were encountered: