Setting Alpha in vanilla material doesn't work. #25
Comments
The alpha does indeed work: https://codesandbox.io/s/lamina-vanilla-blob-forked-hsyz2s?file=/src/index.js:379-429 Notice: for material alpha to be <1 all fragment layers alpha (if any) should also be <1 |
Hmm, your demo doesn't seem to work, I forked it here: https://codesandbox.io/s/lamina-vanilla-blob-forked-7870z8 - line 23 should hide the material right? Or am I missing something? |
Here this works: https://codesandbox.io/s/lamina-vanilla-blob-forked-k10nmf?file=/src/index.js
|
Hmm, was that maybe the wrong link? Seems the code is from an unrelated demo? Should this work then? Cause it doesn't seem to :-) |
Sorry about that. Fixed via Here this example works: https://codesandbox.io/s/lamina-vanilla-blob-forked-4sy17k?file=/src/index.js Couple notes:
|
Here's a fork illustrating the issue: |
Can you try with |
Yes I think so :-) Thanks so much for the effort! |
I have this working with the following. Note I don't need to set export class CustomLayerMaterial extends LayerMaterial {
constructor(layers: Array<Depth | Displace | Fresnel>) {
super({
lighting: "physical",
roughness: 0.2,
transmission: 0.5,
reflectivity: 1,
thickness: 0.4,
layers
});
}
} |
The text was updated successfully, but these errors were encountered: