I know that i can change shader constants in particlefx.set_constant()
But how to change sprite?
I’m fairly certain this can’t be changed at runtime.
Hello
particlefx.set_constant()
Is there a list of accessible constants of a particlefx component. I couldn’t manage to find it anywhere.
Best Regards,
This is for changing the constants of the shader you associate with the particlefx component. Check the shader for any constants (builtins/materials/particlefx.material). You can make a copy of the shader, add any constants you need, and use that constant data in your shader programs. Built in materials only have the tint constant for the fragment shader, I believe.
2 Likes