Skip to content

Commit 0d09a28

Browse files
committed
fix(soba): match MeshTransmissionMaterial with Drei
1 parent 5d30c3a commit 0d09a28

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: libs/soba/shaders/src/mesh-transmission-material/mesh-transmission-material.ts

+4
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ export class MeshTransmissionMaterial extends THREE.MeshPhysicalMaterial {
5353
...this.uniforms,
5454
};
5555

56+
if (this.anisotropy && this.anisotropy > 0) {
57+
shader.defines['USE_ANISOTROPY'] = '';
58+
}
59+
5660
// If the transmission sampler is active inject a flag
5761
if (transmissionSampler) shader.defines['USE_SAMPLER'] = '';
5862
// Otherwise we do use use .transmission and must therefore force USE_TRANSMISSION

0 commit comments

Comments
 (0)