Skip to content

Commit

Permalink
Add uv transform support for transmission and thickness maps (#22364)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeux authored Aug 19, 2021
1 parent 5fc904d commit 0632e04
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/renderers/webgl/WebGLMaterials.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ function WebGLMaterials( properties ) {
// 12. clearcoat roughnessMap map
// 13. specular intensity map
// 14. specular tint map
// 15. transmission map
// 16. thickness map

let uvScaleMap;

Expand Down Expand Up @@ -249,6 +251,14 @@ function WebGLMaterials( properties ) {

uvScaleMap = material.specularTintMap;

} else if ( material.transmissionMap ) {

uvScaleMap = material.transmissionMap;

} else if ( material.thicknessMap ) {

uvScaleMap = material.thicknessMap;

}

if ( uvScaleMap !== undefined ) {
Expand Down

0 comments on commit 0632e04

Please sign in to comment.