Skip to content

Commit

Permalink
fix: optional types for MeshTransmissionMaterialType (#1780)
Browse files Browse the repository at this point in the history
* fix: make `distortionScale` and `temporalDistortion` props optional on MeshTransmissionMaterial

* Update README.md
  • Loading branch information
la55u authored Jan 30, 2024
1 parent 4ed9840 commit d1a5f7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2071,9 +2071,9 @@ type MeshTransmissionMaterialProps = JSX.IntrinsicElements['meshPhysicalMaterial
/* Distortion, default: 0 */
distortion?: number
/* Distortion scale, default: 0.5 */
distortionScale: number
distortionScale?: number
/* Temporal distortion (speed of movement), default: 0.0 */
temporalDistortion: number
temporalDistortion?: number
/** The scene rendered into a texture (use it to share a texture between materials), default: null */
buffer?: THREE.Texture
/** transmissionSampler, you can use the threejs transmission sampler texture that is
Expand Down
4 changes: 2 additions & 2 deletions src/core/MeshTransmissionMaterial.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ type MeshTransmissionMaterialType = Omit<
/* Distortion, default: 0 */
distortion?: number
/* Distortion scale, default: 0.5 */
distortionScale: number
distortionScale?: number
/* Temporal distortion (speed of movement), default: 0.0 */
temporalDistortion: number
temporalDistortion?: number
/** The scene rendered into a texture (use it to share a texture between materials), default: null */
buffer?: THREE.Texture
/** Internals */
Expand Down

0 comments on commit d1a5f7a

Please sign in to comment.