-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
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
WebGPURenderer: support using 3d textures in shaders with texture3d() and add VolumeNodeMaterial() and examples. #28418
Conversation
Overall, what do you think about letting the users handle the map property themselves into the custom For example something like this: The |
@sunag I had to add a hack in ReferenceNode after #28407 (before that PRm this hack wasn't needed) not sure what the correct solution is.
It works for me, initially I was just getting the functionality of the existing examples. Things like the base color should probably use materialColor etc to match existing materials. |
I guess this PR should be updated now that #28433 got merged? |
done. |
As title,
WebGPU and WebGL2 backends supported.
Note WGSL doesn't support a matrix inverse function so the inversion of the object's matrixWorld is carried out in JS.
Two examples based on WebGL2 examples: volume - cloud (simplified) and volume - perlin, both using the VolumeNodeMaterial().
(also Chrome release 125 now supports rendering to 3d textures. https://chromestatus.com/feature/5196871364771840 )