PlayMaker Help & Tips > PlayMaker Help

Set Material Texture (Projector _ShadowTex)

<< < (2/2)

adgrist:
Thanks Jean. set texture works with everything else and other shaders, but when the projector shader is used, on a projector too, it just wont change the _shadowTex. I have just spent a while double checking and im still stumped. Would you be able to describe how you tested it so I know I am not doing it wrong.

jeanfabre:
Hi,

 yes, I should have explained better:

 projectors set up is different from normal rendering, hence the set material texture doesn't work as is by default, you need to explicitly reference the material you want to change. so drag the material onto the action slot, and that will work.

 I have attached a working prefab, so you can see how the action is set up.

warning, changing materials is permanent, so to test this over and over again, set back the material texture to something else and hit play.


 bye,

 Jean

Navigation

[0] Message Index

[*] Previous page

Go to full version