From 795cb4c8b5e45c7f772b9efb01799c0a722e984d Mon Sep 17 00:00:00 2001 From: yum Date: Mon, 28 Jul 2025 00:51:48 -0700 Subject: Update assets --- Scripts/LinearPipeline.cs | 52 ++++------------------------------------------- 1 file changed, 4 insertions(+), 48 deletions(-) (limited to 'Scripts/LinearPipeline.cs') diff --git a/Scripts/LinearPipeline.cs b/Scripts/LinearPipeline.cs index 33b1fef..ae1c65d 100644 --- a/Scripts/LinearPipeline.cs +++ b/Scripts/LinearPipeline.cs @@ -42,8 +42,6 @@ public class LinearPipeline : UdonSharpBehaviour void Start() { - _ConfigurePipeline(); - if (runOnStart) { _RunPipeline(); @@ -58,48 +56,6 @@ public class LinearPipeline : UdonSharpBehaviour } } - /// - /// Configure materials for the pipeline. - /// - void _ConfigurePipeline() - { - if (effectMaterials == null || effectMaterials.Length == 0) - { - Debug.LogError("[LinearUdonPipeline] No Effect Materials have been assigned!", this); - return; - } - - if (pipelineOutputs == null || pipelineOutputs.Length == 0) - { - Debug.LogError("[LinearUdonPipeline] No Pipeline Outputs have been assigned!", this); - return; - } - - if (effectMaterials.Length != pipelineOutputs.Length) - { - Debug.LogError("[LinearUdonPipeline] The number of materials does not match the number of output textures!", this); - return; - } - - // Configure materials - set _MainTex to appropriate source - for (int i = 0; i < effectMaterials.Length; i++) - { - if (effectMaterials[i] != null) - { - if (i == 0) - { - // First material uses the source input - effectMaterials[i].SetTexture("_MainTex", sourceInput); - } - else - { - // Subsequent materials use the previous output as input - effectMaterials[i].SetTexture("_MainTex", pipelineOutputs[i - 1]); - } - } - } - } - /// /// This public method can be called by other Udon scripts or UI events to run the pipeline. /// @@ -108,25 +64,25 @@ public class LinearPipeline : UdonSharpBehaviour // --- Pre-flight Checks --- if (sourceInput == null) { - Debug.LogError("[LinearUdonPipeline] Source Input is not assigned!", this); + Debug.LogError("[LinearPipeline] Source Input is not assigned!", this); return; } if (effectMaterials == null || effectMaterials.Length == 0) { - Debug.LogError("[LinearUdonPipeline] No Effect Materials have been assigned!", this); + Debug.LogError("[LinearPipeline] No Effect Materials have been assigned!", this); return; } if (pipelineOutputs == null || pipelineOutputs.Length == 0) { - Debug.LogError("[LinearUdonPipeline] No Pipeline Outputs have been assigned!", this); + Debug.LogError("[LinearPipeline] No Pipeline Outputs have been assigned!", this); return; } if (effectMaterials.Length != pipelineOutputs.Length) { - Debug.LogError("[LinearUdonPipeline] The number of materials does not match the number of output textures!", this); + Debug.LogError("[LinearPipeline] The number of materials does not match the number of output textures!", this); return; } -- cgit v1.2.3