18 lines
499 B
C#
18 lines
499 B
C#
using UnityEngine;
|
|
using UnityEngine.VFX;
|
|
|
|
namespace DanieleMarotta.RiversongCodeShowcase
|
|
{
|
|
public static class DustVfxProperties
|
|
{
|
|
public static readonly int IntensityID = Shader.PropertyToID("Intensity");
|
|
|
|
public static readonly int SizeID = Shader.PropertyToID("Size");
|
|
|
|
public static void Setup(VisualEffect vfx, float intensity, Vector2 size)
|
|
{
|
|
vfx.SetFloat(IntensityID, intensity);
|
|
vfx.SetVector2(SizeID, size);
|
|
}
|
|
}
|
|
} |