Skip to content

Commit bbe6f1e

Browse files
authored
Improve MeshPhysicalMaterial transmission support (#21884)
* Imptove MeshPhysicalMaterial transmission support * Add webgl_loader_gltf_transmission example * Update webgl_materials_physical_transmission screenshot * Dispose transmissionRenderTarget in WebGLRenderer.dispose() * Remove _transmissionSamplerMap from MeshPhysicalMaterial * Fix transmissionMap * Remove unnecessary sRGB-Linear conversion from transmission shader * Improve transmission shaders * Add more parameters to webgl_materials_physical_transmission example * Update screenshot
1 parent ec96437 commit bbe6f1e

36 files changed

+2068
-50
lines changed

examples/files.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
"webgl_loader_gltf",
8787
"webgl_loader_gltf_compressed",
8888
"webgl_loader_gltf_extensions",
89+
"webgl_loader_gltf_transmission",
8990
"webgl_loader_gltf_variants",
9091
"webgl_loader_ifc",
9192
"webgl_loader_imagebitmap",
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Transmission Test
2+
3+
## Screenshot
4+
5+
![screenshot](screenshot/screenshot_large.png)
6+
7+
## Description
8+
9+
This model demonstrates the usage of the `KHR_materials_transmission`. The grid of spheres demonstrate different combinations of uniform transmission and textured transmission and how they should render in conjunction with opacity (`baseColor.a`) and surface roughness/metalicity.
10+
11+
## License Information
12+
13+
[![CC0](http://i.creativecommons.org/p/zero/1.0/88x31.png)](http://creativecommons.org/publicdomain/zero/1.0/)
14+
To the extent possible under law, Adobe has waived all copyright and related or neighboring rights to this asset.

0 commit comments

Comments
 (0)