Playmaker Forum
PlayMaker Feedback => Action Requests => Topic started by: phannDOTde on February 25, 2014, 06:24:43 AM
-
Not shure if it can be done in a easy way but would be awsome to have an action to blend 2 Textures over Time or Lerp resulting in a dynamic Texture that could be applied to an Material (even Sprites?)
cheers
Peter
-
Hi,
I would use a shader to do that, have you experimented in that direction?
http://www.sundh.com/blog/2012/09/real-time-blend-2-textures-in-unity/
that post has its custom shader:
http://www.sundh.com/blog/wp-content/uploads/2012/09/TextureChange.shader
them post below also provide shaders:
http://answers.unity3d.com/questions/32386/iphone-blend-two-textures-additive-blending.html
http://answers.unity3d.com/questions/392616/fade-shader-one-texture-fades-in-the-other-fades-o.html
bye,
Jean
-
Hey Jean,
I didnt try that jet. Thanks for the Hint I look into this :-)
cheers
Peter
-
Hey Jean,
I have found a shader that works as you suggested, however I am having difficulty controlling the "Blend" slider through playmaker. The Blend slider is not available as a property using the "Set Property" action in Playmaker. Any suggestions?
-
Nevermind - I was able to use the action Set Camera Float and use the float name "_Blend" to control that slider. :)