@react-three/drei 7.27.1 → 7.27.5
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/README.md +6 -5
- package/assets/cloud.base64.cjs.js +1 -1
- package/assets/cloud.base64.d.ts +1 -2
- package/assets/cloud.base64.js +2 -3
- package/core/Cloud.cjs.js +1 -1
- package/core/Cloud.js +1 -1
- package/core/MeshReflectorMaterial.cjs.js +1 -1
- package/core/MeshReflectorMaterial.d.ts +2 -1
- package/core/MeshReflectorMaterial.js +6 -4
- package/core/OrthographicCamera.cjs.js +1 -1
- package/core/OrthographicCamera.js +1 -2
- package/core/PerspectiveCamera.cjs.js +1 -1
- package/core/PerspectiveCamera.js +1 -2
- package/core/Reflector.cjs.js +1 -1
- package/core/Reflector.d.ts +2 -1
- package/core/Reflector.js +5 -3
- package/core/Stats.cjs.js +1 -1
- package/core/Stats.js +1 -1
- package/helpers/useEffectfulState.cjs.js +1 -1
- package/helpers/useEffectfulState.d.ts +1 -1
- package/helpers/useEffectfulState.js +1 -1
- package/index.cjs.js +1 -1
- package/materials/MeshReflectorMaterial.cjs.js +1 -1
- package/materials/MeshReflectorMaterial.d.ts +4 -0
- package/materials/MeshReflectorMaterial.js +20 -2
- package/package.json +1 -1
- package/web/PresentationControls.cjs.js +1 -1
- package/web/PresentationControls.js +1 -1
package/README.md
CHANGED
|
@@ -616,15 +616,16 @@ Easily add reflections and/or blur to any mesh. It takes surface roughness into
|
|
|
616
616
|
<planeGeometry />
|
|
617
617
|
<MeshReflectorMaterial
|
|
618
618
|
blur={[0, 0]} // Blur ground reflections (width, heigt), 0 skips blur
|
|
619
|
-
mixBlur={
|
|
620
|
-
mixStrength={
|
|
619
|
+
mixBlur={0} // How much blur mixes with surface roughness (default = 1)
|
|
620
|
+
mixStrength={1} // Strength of the reflections
|
|
621
|
+
mixContrast={1} // Contrast of the reflections
|
|
621
622
|
resolution={256} // Off-buffer resolution, lower=faster, higher=better quality, slower
|
|
622
|
-
mirror={0
|
|
623
|
-
depthScale={
|
|
623
|
+
mirror={0} // Mirror environment, 0 = texture colors, 1 = pick up env colors
|
|
624
|
+
depthScale={0} // Scale the depth factor (0 = no depth, default = 0)
|
|
624
625
|
minDepthThreshold={0.9} // Lower edge for the depthTexture interpolation (default = 0)
|
|
625
626
|
maxDepthThreshold={1} // Upper edge for the depthTexture interpolation (default = 0)
|
|
626
627
|
depthToBlurRatioBias={0.25} // Adds a bias factor to the depthTexture before calculating the blur amount [blurFactor = blurTexture * (depthTexture + bias)]. It accepts values between 0 and 1, default is 0.25. An amount > 0 of bias makes sure that the blurTexture is not too sharp because of the multiplication with the depthTexture
|
|
627
|
-
distortion={
|
|
628
|
+
distortion={1} // Amount of distortion based on the distortionMap texture
|
|
628
629
|
distortionMap={distortionTexture} // The red channel of this texture is used as the distortion map. Default is null
|
|
629
630
|
debug={0} /* Depending on the assigned value, one of the following channels is shown:
|
|
630
631
|
0 = no debug
|