PhysicalMaterial
Defined in: radiance/src/materials/PhysicalMaterial.ts:34
A physically based material, with the parameters of three.js’s MeshPhysicalMaterial where the
meaning is the same (design record 0004).
At M2 the path tracer stores metalness, roughness, ior, transmission and
specularIntensity and renders the material as a diffuse of its colour, until the principled
BSDF of record 0004, step 2 reads them. The emission renders as it does for every material.
The setter of every parameter adds 1 to version.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new PhysicalMaterial(
p?):PhysicalMaterial
Defined in: radiance/src/materials/PhysicalMaterial.ts:44
Parameters
Section titled “Parameters”PhysicalMaterialParameters = {}
Returns
Section titled “Returns”PhysicalMaterial
Overrides
Section titled “Overrides”Properties
Section titled “Properties”
readonlyid:number
Defined in: radiance/src/materials/Material.ts:20
Inherited from
Section titled “Inherited from”name:
string=''
Defined in: radiance/src/materials/Material.ts:22
A name for the author. The renderer does not read it.
Inherited from
Section titled “Inherited from”
readonlytype:number=MATERIAL_PHYSICAL
Defined in: radiance/src/materials/PhysicalMaterial.ts:35
The scattering the kernel applies: 0 diffuse, 1 mirror, 2 physical.
Overrides
Section titled “Overrides”version
Section titled “version”version:
number=0
Defined in: radiance/src/materials/Material.ts:24
Incremented by the setter of every parameter.
Inherited from
Section titled “Inherited from”Accessors
Section titled “Accessors”Get Signature
Section titled “Get Signature”get color():
Color
Defined in: radiance/src/materials/Material.ts:45
The fraction of light reflected, per channel.
Returns
Section titled “Returns”Set Signature
Section titled “Set Signature”set color(
value):void
Defined in: radiance/src/materials/Material.ts:48
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”doubleSided
Section titled “doubleSided”Get Signature
Section titled “Get Signature”get doubleSided():
boolean
Defined in: radiance/src/materials/Material.ts:63
Whether the surface gives off light from its back face too. Default false.
Returns
Section titled “Returns”boolean
Set Signature
Section titled “Set Signature”set doubleSided(
value):void
Defined in: radiance/src/materials/Material.ts:66
Parameters
Section titled “Parameters”boolean
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”emissive
Section titled “emissive”Get Signature
Section titled “Get Signature”get emissive():
Color
Defined in: radiance/src/materials/Material.ts:54
The light the surface gives off from its front face, as radiance.
Returns
Section titled “Returns”Set Signature
Section titled “Set Signature”set emissive(
value):void
Defined in: radiance/src/materials/Material.ts:57
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”emissiveIntensity
Section titled “emissiveIntensity”Get Signature
Section titled “Get Signature”get emissiveIntensity():
number
Defined in: radiance/src/materials/PhysicalMaterial.ts:100
Multiplies emissive. The packer stores the product (record 0004).
Returns
Section titled “Returns”number
Set Signature
Section titled “Set Signature”set emissiveIntensity(
value):void
Defined in: radiance/src/materials/PhysicalMaterial.ts:103
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”void
flatShading
Section titled “flatShading”Get Signature
Section titled “Get Signature”get flatShading():
boolean
Defined in: radiance/src/materials/Material.ts:76
Whether the kernel shades with the geometric normal in place of the interpolated vertex
normals, as three.js’s material.flatShading does. Default false. The geometry and the hits
do not change (design record 0004, “Flat shading”).
Returns
Section titled “Returns”boolean
Set Signature
Section titled “Set Signature”set flatShading(
value):void
Defined in: radiance/src/materials/Material.ts:79
Parameters
Section titled “Parameters”boolean
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Get Signature
Section titled “Get Signature”get ior():
number
Defined in: radiance/src/materials/PhysicalMaterial.ts:73
The index of refraction.
Returns
Section titled “Returns”number
Set Signature
Section titled “Set Signature”set ior(
value):void
Defined in: radiance/src/materials/PhysicalMaterial.ts:76
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”void
metalness
Section titled “metalness”Get Signature
Section titled “Get Signature”get metalness():
number
Defined in: radiance/src/materials/PhysicalMaterial.ts:55
How much the surface is a metal, from 0 to 1.
Returns
Section titled “Returns”number
Set Signature
Section titled “Set Signature”set metalness(
value):void
Defined in: radiance/src/materials/PhysicalMaterial.ts:58
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”void
roughness
Section titled “roughness”Get Signature
Section titled “Get Signature”get roughness():
number
Defined in: radiance/src/materials/PhysicalMaterial.ts:64
How rough the surface is, from 0 (polished) to 1.
Returns
Section titled “Returns”number
Set Signature
Section titled “Set Signature”set roughness(
value):void
Defined in: radiance/src/materials/PhysicalMaterial.ts:67
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”void
specularIntensity
Section titled “specularIntensity”Get Signature
Section titled “Get Signature”get specularIntensity():
number
Defined in: radiance/src/materials/PhysicalMaterial.ts:91
The strength of the specular reflection of a dielectric, from 0 to 1.
Returns
Section titled “Returns”number
Set Signature
Section titled “Set Signature”set specularIntensity(
value):void
Defined in: radiance/src/materials/PhysicalMaterial.ts:94
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”void
transmission
Section titled “transmission”Get Signature
Section titled “Get Signature”get transmission():
number
Defined in: radiance/src/materials/PhysicalMaterial.ts:82
How much light passes through the surface, from 0 to 1.
Returns
Section titled “Returns”number
Set Signature
Section titled “Set Signature”set transmission(
value):void
Defined in: radiance/src/materials/PhysicalMaterial.ts:85
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”void