We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d30c3a commit 0d09a28Copy full SHA for 0d09a28
libs/soba/shaders/src/mesh-transmission-material/mesh-transmission-material.ts
@@ -53,6 +53,10 @@ export class MeshTransmissionMaterial extends THREE.MeshPhysicalMaterial {
53
...this.uniforms,
54
};
55
56
+ if (this.anisotropy && this.anisotropy > 0) {
57
+ shader.defines['USE_ANISOTROPY'] = '';
58
+ }
59
+
60
// If the transmission sampler is active inject a flag
61
if (transmissionSampler) shader.defines['USE_SAMPLER'] = '';
62
// Otherwise we do use use .transmission and must therefore force USE_TRANSMISSION
0 commit comments