IScenePreviewProvider
- Namespace: Turian.Engine.Core
- Source File: IScenePreviewProvider.cs
An asset preview that needs an actual lit 3D render — a model, or a material shown on a swatch. The engine renders the returned scene with SceneViewerService.Render, framed by Bounds, the same way the Scene View renders the edited hierarchy.
Public Methods
BuildPreview
AssetPreviewScene BuildPreview(Asset asset, Vulkan vulkan)
Builds a self-contained scene — mesh and light nodes as children of Root — to render asset.
Parameters:
asset(Asset): The asset to preview.vulkan(Vulkan): The Vulkan context to build GPU resources against.
Returns: AssetPreviewScene