Files
Pal3.Unity/Assets/Scripts/Editor/ResourceBrowser/IResourcePreviewFrameEffect.cs
Jiaqi (0x7c13) Liu a8b9467a93 feat(effects): drive battle effects through shared resource previews
Bind battle control nodes to action owners. Share preview lighting, geometry and effect resources with the existing Unity editors.
2026-11-19 01:13:08 +08:00

24 lines
794 B
C#

// ------------------------------------------------------------------------
// Copyright (c) 2026, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ------------------------------------------------------------------------
namespace Pal3.ResourceBrowser
{
using UnityEngine;
// The composite preview owner supplies and disposes optional frame effects.
// Rendering the scene and presenting its output remain separate operations.
public interface IResourcePreviewFrameEffect
{
Vector2Int TargetSize(int requestedWidth, int requestedHeight);
Rect Viewport
{
get;
}
RenderTexture Composite(RenderTexture scene, int requestedWidth, int requestedHeight);
}
}