Class Material
Immutable opaque flat material using packed 0xAARRGGBB color.
Inherited Members
Namespace: Simple3D.Core
Assembly: Simple3D.Core.dll
Syntax
public sealed class Material
Constructors
| Edit this page View SourceMaterial(uint, bool, bool)
Creates an opaque material. Transparent colors are rejected.
Declaration
public Material(uint color = 4286356991, bool lit = true, bool doubleSided = true)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | color | |
| bool | lit | |
| bool | doubleSided |
Properties
| Edit this page View SourceColor
Opaque packed 0xAARRGGBB color.
Declaration
public uint Color { get; }
Property Value
| Type | Description |
|---|---|
| uint |
DoubleSided
Whether back faces are rendered.
Declaration
public bool DoubleSided { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Lit
Whether fixed directional lighting affects the color.
Declaration
public bool Lit { get; }
Property Value
| Type | Description |
|---|---|
| bool |