How to use mat
#7505
Replies: 1 comment 1 reply
-
First, change your shader to hard coded value, in material.emissive.rgb = vec3(0, 1, 0) to see if you get green result. Since white is a default color, it may affect your judgement. Second. your material instance should just create only once during rendering, if you add the entity into scene, you just create the material once and attach to the entity. You can update using setparamters each frame. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
I am not sure if this is a bug, I would like to ask how to use mat
To Reproduce
Execute the matc command
./matc -p mobile -a opengl -o emissive.filamat emissive.mat
Load the .filament file and apply
I made sure that the setMaterialInstanceAt method was executed
Expected behavior
Each bead should have its own emissive color, but the actual effect is white.
Screenshots
Beta Was this translation helpful? Give feedback.
All reactions