2023-01-22 16:38:23 +01:00
|
|
|
|
using System;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace ABI.CCK.Components
|
|
|
|
|
{
|
2024-08-03 22:24:42 +02:00
|
|
|
|
[AddComponentMenu("ChilloutVR/CVR Global Shader Updater")]
|
|
|
|
|
[HelpURL("https://developers.abinteractive.net/cck/components/global-shader-updater/")]
|
|
|
|
|
public class CVRGlobalShaderUpdater : MonoBehaviour, ICCK_Component
|
2023-01-22 16:38:23 +01:00
|
|
|
|
{
|
|
|
|
|
public bool updateValues = true;
|
|
|
|
|
|
|
|
|
|
public Vector4 CVR_CCK_Global_1 = Vector4.zero;
|
|
|
|
|
public Vector4 CVR_CCK_Global_2 = Vector4.zero;
|
|
|
|
|
public Vector4 CVR_CCK_Global_3 = Vector4.zero;
|
|
|
|
|
public Vector4 CVR_CCK_Global_4 = Vector4.zero;
|
|
|
|
|
|
|
|
|
|
public bool updateTexture = false;
|
|
|
|
|
|
|
|
|
|
public RenderTexture renderTexture;
|
|
|
|
|
public string propertyName;
|
|
|
|
|
|
|
|
|
|
private void Update()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|