I am trying to simulate a custom after burner effect with a scrolling texture and MK Glow.
This scrolls the texture.
Now how do I make the texture brightness change with time?
using UnityEngine;
using System.Collections;
public class scrolling_texture : MonoBehaviour {
public int materialIndex = 0;
public float scrollSpeed = 0.5F;
public Renderer rend;
void Start() {
rend = GetComponent<Renderer>();
}
void Update() {
float offset = Time.time * scrollSpeed;
rend.material.SetTextureOffset("_MainTex", new Vector2(offset, 0));
}
}
