-
Notifications
You must be signed in to change notification settings - Fork 0
Material
Namespace: Electron2D
Provides the Electron2D base resource for visual materials.
public abstract class Electron2D.Material : Electron2D.ResourceMaterial is the common base for resources that describe how geometry is
colored or shaded. Electron2D 0.1.0 Preview uses it as the inheritance base
for Electron2D.ShaderMaterial.
The current 2D renderer stores Electron2D.Material.NextPass and
Electron2D.Material.RenderPriority for API parity, but the draw pipeline does
not yet execute additional material passes.
This type is not synchronized. Mutate material state on the main thread or from a single import/tooling worker.
This type is available since Electron2D 0.1.0 Preview.
Electron2D.ShaderMaterial
| Member | Kind | Summary |
|---|---|---|
NextPass |
Property | Gets or sets the material used for the next rendering pass. |
RenderPriority |
Property | Gets or sets the material render priority. |
Electron2D.Material() |
Constructor | Initializes a new instance of the Material type. |
Kind: Property
public Electron2D.Material NextPass { get; set; }Gets or sets the material used for the next rendering pass.
Electron2D 0.1.0 Preview stores this value so resource data can round trip through tooling. Rendering extra passes is part of a later renderer task.
The current next pass value.
This property is not synchronized. Mutate it on the main thread or from a single import/tooling worker.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.Material
Kind: Property
public System.Int32 RenderPriority { get; set; }Gets or sets the material render priority.
The valid range matches Electron2D's material priority range:
-128 through 127. The value is stored for future renderer
ordering; current 2D queue ordering is still driven by canvas item
state.
The current render priority value.
-
System.ArgumentOutOfRangeException: Thrown when the value is outside the supported range.
This property is not synchronized. Mutate it on the main thread or from a single import/tooling worker.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.Material
Kind: Constructor
public Electron2D.Material()Initializes a new instance of the Material type.
The new instance follows the lifetime and validation rules of its declaring type.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Material
Electron2D 0.1.0 Preview API reference. Generated from 175 public runtime types.