Playmaker Forum

PlayMaker Feedback => Action Requests => Topic started by: phannDOTde on February 25, 2014, 06:24:43 AM

Title: Blend Texture[SOLVED]
Post 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
Title: Re: Blend Texture
Post by: jeanfabre on February 25, 2014, 07:06:06 AM
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

Title: Re: Blend Texture
Post by: phannDOTde on February 25, 2014, 12:31:53 PM
Hey Jean,

I didnt try that jet. Thanks for the Hint I look into this :-)

cheers
Peter
Title: Re: Blend Texture
Post by: frogwise on March 29, 2016, 10:43:43 PM
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?


Title: Re: Blend Texture
Post by: frogwise on March 30, 2016, 01:25:59 AM
Nevermind - I was able to use the action Set Camera Float and use the float name "_Blend" to control that slider. :)