Skip to content

Commit

Permalink
change specularIntensityMap uv & change version 0.137.15 (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
qiweicao committed Jun 13, 2024
1 parent 6d729bb commit 89d29e4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oppentech/three",
"version": "0.137.14",
"version": "0.137.15",
"description": "JavaScript 3D library",
"type": "module",
"main": "./build/three.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,15 @@ material.roughness = min( material.roughness, 1.0 );
#ifdef USE_SPECULARINTENSITYMAP
specularIntensityFactor *= texture2D( specularIntensityMap, vUv ).a;
// use vUv2 if it exists, otherwise use vUv
// when use uv mapping, vUv will be wrong
specularIntensityFactor *= texture2D( specularIntensityMap,
#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )
vUv2
#else
vUv
#endif
).a;
#endif
Expand Down

0 comments on commit 89d29e4

Please sign in to comment.