Jump to content

instancing shaders


Bernard

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...