[M] add fswave FSBlur Test scripts

This commit is contained in:
2025-03-11 15:23:01 +08:00
parent d764abfd7d
commit 7aef099b44
16 changed files with 900 additions and 105 deletions

View File

@@ -0,0 +1,30 @@
using UnityEngine;
using zzwater;
public class RendererFeatureToggle : MonoBehaviour
{
void OnGUI()
{
GUILayout.Label("W Toggle FSWave");
GUILayout.Label("B Toggle FSBlur");
}
void Update()
{
if (Input.GetKeyUp(KeyCode.W))
{
ToggleRendererFeature("FSWave");
}
if(Input.GetKeyUp(KeyCode.B))
{
ToggleRendererFeature("FSBlur");
}
}
private void ToggleRendererFeature(string featureName)
{
var feature = URPHelper.FindAndCacheRendererFeature(featureName);
feature?.SetActive(!feature.isActive);
}
}

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: d44a821c64507624e88e7f1240c5cefe
guid: ebe6847dadb94f545ba84ecdc50f5b2e
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -1,18 +0,0 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TestOnRenderImage : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}