Hey everyone, I’ve been looking everywhere for how to do an effect I need for my game. What I want is as the player is moving through a black and white world, I want to bleed colors that turns the world into color as the bleeding expands leaving a trail of colored world.
The closest I have come to finding this effect is this:
.
But this in only a global effect. It doesn’t help me as far as leaving a trail behind.
Does anybody have any advice on how I can accomplish this?
using UnityEngine;
[ExecuteInEditMode]
public class BrushPositionSetter : MonoBehaviour
{
void Update()
{
Shader.SetGlobalVector("_BrushPos", transform.position);
}
}
The same render texture is used for both input and output.
It’s works but I do not know how to get rid of the black edging on the borders of the UV islands.
Here package with current setup, just for demonstrate conception, I think is better idea use camera controlled from script, or even something like drawMeshNow.
Thanks again. Your project works only I’m not getting the same result as in your video. It’s working more like a spotlight or a projector. Not actually leaving any trail behind.