Bernard Posted March 21, 2008 Share Posted March 21, 2008 Hello, I want to make a particle system and instance 3 different shaders (shader_01,shader_02,shader_03) to the geometry , depending on the particle $ID. How can I do this with this expression or is there another method?: shader_0`rint(fit(rand($ID), 0, 1, 1, 3))` thanks, bern Quote Link to comment Share on other sites More sharing options...
Max Stalker Posted March 24, 2008 Share Posted March 24, 2008 Hello,I want to make a particle system and instance 3 different shaders (shader_01,shader_02,shader_03) to the geometry , depending on the particle $ID. How can I do this with this expression or is there another method?: shader_0`rint(fit(rand($ID), 0, 1, 1, 3))` thanks, bern If you wana use it with sprites, i think you can create attribute and transfer it to one shader. Then in VEX you can check that attribute and assign ( via "If then Block" or something simmilar) different shader. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.