16 lines
369 B
C#
16 lines
369 B
C#
using UnityEngine;
|
|
|
|
namespace StixGames.GrassShader.Example
|
|
{
|
|
public class ShaderParameterAnimator : MonoBehaviour
|
|
{
|
|
public string ShaderParameter;
|
|
public float Value;
|
|
|
|
public void Update()
|
|
{
|
|
var material = GetComponent<Renderer>().material;
|
|
material.SetFloat(ShaderParameter, Value);
|
|
}
|
|
}
|
|
} |