Make model transparent by setting alpha values, change blending mode at runtime. #6441
MukeshBlippar
started this conversation in
Ideas
Replies: 1 comment
-
No, the blending mode informs how the shader code is generated, which happens offline during material compilation. If you want to be able to control transparency on all materials, you'll either need to change all their blend modes, or maintain two versions of each material. |
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
-
Hi, I have requirement to set Fade in / out animation on 3D models. And also to change the opacity of any model at run time to make it transparent. So far from all the issues here, I learnt that it's only possible if the blending mode of model is set 'Transparent' or 'Fade'. But if the default blending mode is 'Opaque', it is not allowing to set the alpha values. And Filament API also doesn't allow to change the blending mode at run time.
I managed to set opacity for the model by creating my own custom material and applying the on renderable. But this over rides the existing material. So the question is how can we achieve to set the alpha value in existing material. Is it possible to change the blending mode at the app level? Any plan to add this feature in future? Here is my code which is working to create material with alpha value.
Beta Was this translation helpful? Give feedback.
All reactions