[Add] All in one shader

This commit is contained in:
2026-02-23 22:01:07 +07:00
parent ec0aa86ac2
commit 4f942cd7c0
806 changed files with 401510 additions and 33 deletions
@@ -0,0 +1,24 @@
using UnityEngine;
namespace AllIn13DShader
{
[ExecuteInEditMode]
public class AllIn13DShaderRandomTimeSeed : MonoBehaviour
{
[SerializeField] private float minSeedValue = 0;
[SerializeField] private float maxSeedValue = 100f;
private void Start()
{
RefreshTimingSeed();
}
[ContextMenu("Refresh Timing Seed")]
private void RefreshTimingSeed()
{
MaterialPropertyBlock properties = new MaterialPropertyBlock();
properties.SetFloat("_TimingSeed", Random.Range(minSeedValue, maxSeedValue));
GetComponent<Renderer>().SetPropertyBlock(properties);
}
}
}