-
-
Notifications
You must be signed in to change notification settings - Fork 35.6k
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
NodeMaterial PMREM custom size #16878
Conversation
With this approach is possible to create multiples PMREMs for the same material each with different sizes. |
Usage nodeTexture = new THREE.TextureNode( pmremCubeUVPacker.CubeUVRenderTarget.texture );
nodeTextureSize = new THREE.FloatNode( 1024 );
nodeMaterial.environment = new THREE.TextureCubeNode( nodeTexture, nodeTextureSize ); |
Thanks! |
@sunag Thanks for this. Please see |
@WestLangley Apparently to this is possible is necessary makes this changes #16054 |
For this is necessary some changes in |
@WestLangley I'm actually changing that. Making the examples import the EDIT: I'm referring to the html files and not the files in |
Custom PMREM texture size per
node
.Example
https://rawgit.com/sunag/three.js/dev-fix-TextureCubeNode/examples/webgl_materials_envmaps_pmrem_nodes.html
256

1024

/cc @bhouston @WestLangley