-
-
Notifications
You must be signed in to change notification settings - Fork 36.1k
WebGPURenderer: CubeRenderTarget and CubeCamera #26152
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
Conversation
📦 Bundle sizeFull ESM build, minified and gzipped.
🌳 Bundle size after tree-shakingMinimal build including a renderer, camera, empty scene, and dependencies.
|
|
@mrdoob I'm already very close to the
TexturesOne thing has been bugging me for a while, it seems we have a texture configuration policy in three.js. Texture settings are often tweaked overriding the defined settings automatically. I'll give you an example: three.js/examples/webgl_loader_gltf.html Lines 54 to 61 in 129635b
The settings are:texture.minFilter = THREE.LinearFilter;
texture.generateMipmaps = false;
//texture.needsPMREMUpdate = false;Texture settings are converted totexture.minFilter = THREE.LinearMipmapLinearFilter;
texture.generateMipmaps = true;
//texture.needsPMREMUpdate = true;This is something I'm going to implement it texture configuration policy in the WebGPU to maintain backwards compatibility I think... I don't know if we can change that at this point, or if there is one description to this somewhere that I haven't noticed. |
|
Is this the line you're referring to?
|
|
I think that would be it:
Both |



Description
This update is a continuation of this PR ( #26140 ) which includes the coordinate system for
WebGPU. This approach allowsCubeCamerato get the.coordinateSystemfrom theRendererand update the settings if necessary. The update also makes some improvements to RTT regarding cache usage in case the application need to change many times theTone MappingandColor Space.three.js.webgpu.-.dynamic.cube.reflection.-.Google.Chrome.2023-05-27.06-27-14.1.mp4
CubeCamera: Introduce Coordinate System