|
Hi, i know this question was asked several times and theres many topics on this, but i didnt seem to find any answer in those so i will try to ask this again. How do you change color of additive particles shader at run time ? Strangely enough, the regular renderer.material.color = Color.yellow; wont work on this shader. Thanks for any help. Luke
(comments are locked)
|
|
The particles themselves have a color (they use vertex colors, I believe). So you have to change the colors of the particles (see ParticleEmitter.particles array). Or change the ParticleAnimator.colorAnimation colors. Or just use a different shader. thanks for reply. And how do i acces ParticleAnimator.colorAnimation ? my object doesnt have particle animator so it cannot access it. Its regular prefab with simple geometry and it has this shader on it. I tried to add the particle animator component, it didnt help tho.
Aug 09 '11 at 11:43 AM
oliver344
In that case you're left with the final option (use a different shader), sorry. VertexLit transparent with black colour and full emission might do what you need, or modify Particles/Additive.
Aug 09 '11 at 11:46 AM
Waz
(comments are locked)
|
