MeshPhongMaterial transparency #1243
Unanswered
ThiagoFacchini
asked this question in
Q&A
Replies: 1 comment
-
alpha doesnt exist, its opacity: <meshPhongMaterial transparent color="red" opacity={0.5} /> https://threejs.org/docs/index.html?q=phon#api/en/materials/Material.opacity as for args, it's always an array or arguments: // constructing an onbject
new Foo(x, y, z, 1, 2, 3)
// in jsx
<foo args={[x, y, z, 1, 2, 3]} /> this section is a must read if you want to use r3f with confidence: https://github.com/pmndrs/react-three-fiber/blob/master/markdown/api.md#objects-properties-and-constructor-arguments |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm trying to create a MeshPhongMaterial with transparency, so far I tried:
and
The first attempt yield no transparency at all, the second attempt throws an error "TypeError: argsNew.some is not a function".
Any idea on how should I do it?
Beta Was this translation helpful? Give feedback.
All reactions