Methods
(static) anisotropicVolumeMaterial(settings)
Anisotropic (inhomogeneous) material
Parameters:
Name |
Type |
Description |
settings |
object
|
Material settings
Properties
Name |
Type |
Description |
name |
string
|
The name/id of the material.
|
color |
string
|
Material color as a hex string: '#ffffff'
|
albedo |
Array.<number>
|
Array of three albedo values (one for each rgb channel): [0.8, 0.9, 0.9]
|
density |
number
|
Volume density
|
scale |
number
|
Sampling scale
|
sampleOffset |
number
|
Sample start offset
|
|
- Source:
-
(static) clearcoatMaterial(settings)
Represents a dielectric / glass material
Parameters:
Name |
Type |
Description |
settings |
object
|
Material settings
Properties
Name |
Type |
Description |
name |
string
|
The name/id of the material.
|
color |
string
|
Material color as a hex string: '#ffffff'
|
albedo |
Array.<number>
|
Array of three albedo values (one for each rgb channel): [0.8, 0.9, 0.9]
|
refIdx- |
number
|
Refractive index for the material. Water: ~1.33, window glass: 1.52, diamond: ~2.42
|
|
- Source:
-
(static) coatedEmissiveMaterial(settings)
Represents a coated emissive material ("a light with glass over it")
Parameters:
Name |
Type |
Description |
settings |
object
|
Material settings
Properties
Name |
Type |
Description |
name |
string
|
The name/id of the material.
|
color |
string
|
Material color as a hex string: '#ffffff'
|
intensity |
number
|
Emissive intensity. Should be larger than 1.
|
refIdx- |
number
|
Refractive index for the material. Water: ~1.33, window glass: 1.52, diamond: ~2.42
|
|
- Source:
-
(static) dialectricMaterial(settings)
Represents a dielectric / glass material
Parameters:
Name |
Type |
Description |
settings |
object
|
Material settings
Properties
Name |
Type |
Description |
name |
string
|
The name/id of the material.
|
color |
string
|
Material color as a hex string: '#ffffff'
|
albedo |
Array.<number>
|
Array of three albedo values (one for each rgb channel): [0.8, 0.9, 0.9]
|
refIdx- |
number
|
Refractive index for the material. Water: ~1.33, window glass: 1.52, diamond: ~2.42
|
|
- Source:
-
(static) emissiveMaterial(settings)
Represents an emissive material ("a light")
Parameters:
Name |
Type |
Description |
settings |
object
|
Material settings
Properties
Name |
Type |
Description |
name |
string
|
The name/id of the material.
|
color |
string
|
Material color as a hex string: '#ffffff'
|
intensity |
number
|
Emissive intensity. Should be larger than 1.
|
|
- Source:
-
(static) isotropicVolumeMaterial(settings)
Isotropic (homogeneous) material
Parameters:
Name |
Type |
Description |
settings |
object
|
Material settings
Properties
Name |
Type |
Description |
name |
string
|
The name/id of the material.
|
color |
string
|
Material color as a hex string: '#ffffff'
|
albedo |
Array.<number>
|
Array of three albedo values (one for each rgb channel): [0.8, 0.9, 0.9]
|
density |
number
|
Volume density
|
|
- Source:
-
(static) lambertMaterial(settings)
Represents a lambert material
Parameters:
Name |
Type |
Description |
settings |
object
|
Material settings
Properties
Name |
Type |
Description |
name |
string
|
The name/id of the material.
|
color |
string
|
Material color as a hex string: '#ffffff'
|
albedo |
Array.<number>
|
Array of three albedo values (one for each rgb channel): [0.8, 0.9, 0.9]
|
|
- Source:
-
Represents a metal materiall
Parameters:
Name |
Type |
Description |
settings |
object
|
Material settings
Properties
Name |
Type |
Description |
name |
string
|
The name/id of the material.
|
color |
string
|
Material color as a hex string: '#ffffff'
|
albedo |
Array.<number>
|
Array of three albedo values (one for each rgb channel): [0.8, 0.9, 0.9]
|
fuzz |
number
|
Metal "fuzziness". A value of '0' signifies perfect reflectance.
|
|
- Source:
-