Skip to content

Commit

Permalink
fix(soba): match MeshTransmissionMaterial with Drei
Browse files Browse the repository at this point in the history
  • Loading branch information
nartc committed Sep 22, 2023
1 parent 5d30c3a commit 0d09a28
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ export class MeshTransmissionMaterial extends THREE.MeshPhysicalMaterial {
...this.uniforms,
};

if (this.anisotropy && this.anisotropy > 0) {
shader.defines['USE_ANISOTROPY'] = '';
}

// If the transmission sampler is active inject a flag
if (transmissionSampler) shader.defines['USE_SAMPLER'] = '';
// Otherwise we do use use .transmission and must therefore force USE_TRANSMISSION
Expand Down

0 comments on commit 0d09a28

Please sign in to comment.