Voxel toolkit
The toolkit that lets you easily import .vox assets and have runtime API
Loading...
Searching...
No Matches
VoxelToolkit.Material Struct Reference

Represents the material with its properties. More...

Static Public Member Functions

static Material CreateBaseWithColor (Color color)
 Creates default material with provided color.
 

Static Public Attributes

static readonly Material Base
 Basic white diffuse material.
 

Properties

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.
 

Detailed Description

Represents the material with its properties.

Member Function Documentation

◆ CreateBaseWithColor()

static Material VoxelToolkit.Material.CreateBaseWithColor ( Color  color)
static

Creates default material with provided color.

Parameters
colorThe color to use for the material
Returns
Base material with provided color

Member Data Documentation

◆ Base

readonly Material VoxelToolkit.Material.Base
static
Initial value:
= new Material()
{
Color = Color.white,
materialType = MaterialType.Basic,
weight = 1.0f,
roughness = 1.0f,
specular = 0.0f,
ior = 1.0f,
attenuation = 1.0f,
flux = 0.0f,
plastic = 1.0f,
emit = 0.0f
}
MaterialType MaterialType
The type of the material.
Definition: Material.cs:118
Color Color
Material's color.
Definition: Material.cs:100

Basic white diffuse material.


The documentation for this struct was generated from the following file: