Represents the material with its properties.
More...
|
Color | Color [get, set] |
| Material's color.
|
|
float | Emit [get, set] |
| Emission level of the material.
|
|
MaterialType | MaterialType [get, set] |
| The type of the material.
|
|
float | Weight [get, set] |
| The weight of the material.
|
|
float | Roughness [get, set] |
| The roughness of the material.
|
|
float | Specular [get, set] |
| The specular factor of the material.
|
|
float | IOR [get, set] |
| The IOR level of the material.
|
|
float | Attenuation [get, set] |
| The attenuation factor of the material.
|
|
float | Flux [get, set] |
| The flux factor of the material.
|
|
float | Plastic [get, set] |
| The plasticity level of the material.
|
|
Represents the material with its properties.
◆ CreateBaseWithColor()
static Material VoxelToolkit.Material.CreateBaseWithColor |
( |
Color |
color | ) |
|
|
static |
Creates default material with provided color.
- Parameters
-
color | The color to use for the material |
- Returns
- Base material with provided color
◆ Base
readonly Material VoxelToolkit.Material.Base |
|
static |
Initial value:= new Material()
{
weight = 1.0f,
roughness = 1.0f,
specular = 0.0f,
ior = 1.0f,
attenuation = 1.0f,
flux = 0.0f,
plastic = 1.0f,
emit = 0.0f
}
Basic white diffuse material.
The documentation for this struct was generated from the following file:
- Voxel Toolkit/Scripts/Assets/Material.cs