@plastic-software/three 0.183.0 → 0.183.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plastic-software/three",
3
- "version": "0.183.0",
3
+ "version": "0.183.1",
4
4
  "description": "JavaScript 3D library",
5
5
  "type": "module",
6
6
  "main": "./build/three.cjs",
@@ -123,11 +123,11 @@ export default /* glsl */`
123
123
  #define cubeUV_r1 0.8
124
124
  #define cubeUV_m1 - 1.0
125
125
  #define cubeUV_r4 0.4
126
- #define cubeUV_m4 2.0
126
+ #define cubeUV_m4 3.0
127
127
  #define cubeUV_r5 0.305
128
- #define cubeUV_m5 3.0
128
+ #define cubeUV_m5 4.0
129
129
  #define cubeUV_r6 0.21
130
- #define cubeUV_m6 4.0
130
+ #define cubeUV_m6 5.0
131
131
 
132
132
  float roughnessToMip( float roughness ) {
133
133
 
@@ -151,7 +151,7 @@ export default /* glsl */`
151
151
 
152
152
  } else {
153
153
 
154
- mip = - 2.0 * log2( 1.16 * roughness ); // 1.16 = 1.79^0.25
154
+ mip = - 2.0 * log2( 1.16 * roughness ) + 1.0; // 1.16 = 1.79^0.25
155
155
  }
156
156
 
157
157
  return mip;