Skip to content

Commit

Permalink
fix(MeshTransmissionMaterial): explicit order (#1484)
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyJasonBennett committed Jun 1, 2023
1 parent ecea3a1 commit f313a7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/MeshTransmissionMaterial.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ export const MeshTransmissionMaterial = React.forwardRef(
backsideResolution,
background,
anisotropy,
anisotropicBlur,
...props
}: MeshTransmissionMaterialProps,
fref
Expand Down Expand Up @@ -457,7 +458,7 @@ export const MeshTransmissionMaterial = React.forwardRef(
// In order for this to not incur extra cost "transmission" must be set to 0 and treated as a reserved prop.
// This is because THREE.WebGLRenderer will check for transmission > 0 and execute extra renders.
// The exception is when transmissionSampler is set, in which case we are using three's built in sampler.
anisotropicBlur={anisotropy}
anisotropicBlur={anisotropicBlur ?? anisotropy}
transmission={transmissionSampler ? transmission : 0}
thickness={thickness}
side={side}
Expand Down

1 comment on commit f313a7b

@vercel
Copy link

@vercel vercel bot commented on f313a7b Jun 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.