Skip to content
API referenceDevelopmentRuntime scriptingEngine ccf7d03f
Synced
  • Resolves the deterministic variant selected by a material.

API: scripting
Project: Inno.Rendering.Assets
Scope: Runtime

public static InnoEngine.Rendering.RenderShaderVariant InnoEngine.Rendering.RenderShaderVariant.FromMaterial(InnoEngine.Rendering.MaterialAsset material)

Parameter material: The material whose declared keyword options are evaluated.

The canonical variant shared by authoring compilation and runtime lookup.

Exception T:System.InvalidOperationException: Thrown when the material has no shader definition or selects an unknown or conflicting option.