Files
FueraDeEscala/Assets/Game Kit Controller/Scripts/Camera/Camera Effect/extraCameraEffectSystem.cs
Robii Aragon 779f2c8b20 add ckg
plantilla base para movimiento básico
2026-02-05 05:07:55 -08:00

28 lines
556 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class extraCameraEffectSystem : MonoBehaviour
{
public cameraEffectSystem maincameraEffectSystem;
public Camera mainCamera;
private void OnRenderImage (RenderTexture source, RenderTexture destination)
{
if (!maincameraEffectSystem.renderEffectActive) {
return;
}
if (mainCamera == null) {
mainCamera = Camera.main;
}
if (!mainCamera.enabled) {
return;
}
maincameraEffectSystem.extraRenderImage (source, destination, mainCamera);
}
}