Synced
ShaderPreviews.DrawMaterial
Section titled “ShaderPreviews.DrawMaterial”
- Draws detached Material overrides using its Shader’s compiled contract.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Editor.Shaders.ImGui
Scope: Editor
Declaration
Section titled “Declaration”public void InnoEditor.Shaders.ShaderPreviews.DrawMaterial(System.Guid ownerId, InnoEngine.Rendering.MaterialAsset material, float logicalSize)Parameters
Section titled “Parameters”Parameter ownerId: Persistent document identity; no Material is retained under this identity.
Parameter material: Invocation-local Material values.
Parameter logicalSize: Positive square image size in logical pixels.