Struct gltf_json::extensions::material::Transmission
source · pub struct Transmission {
pub transmission_factor: TransmissionFactor,
pub transmission_texture: Option<Info>,
pub extras: Extras,
}
Fields§
§transmission_factor: TransmissionFactor
The base percentage of light that is transmitted through the surface.
The amount of light that is transmitted by the surface rather than diffusely re-emitted. This is a percentage of all the light that penetrates a surface (i.e. isn’t specularly reflected) rather than a percentage of the total light that hits a surface. A value of 1.0 means that 100% of the light that penetrates the surface is transmitted through.
transmission_texture: Option<Info>
The transmission texture.
The R channel of this texture defines the amount of light that is transmitted by the surface rather than diffusely re-emitted. A value of 1.0 in the red channel means that 100% of the light that penetrates the surface (i.e. isn’t specularly reflected) is transmitted through. The value is linear and is multiplied by the transmissionFactor to determine the total transmission value.
extras: Extras
Optional application specific data.
Trait Implementations§
source§impl Clone for Transmission
impl Clone for Transmission
source§fn clone(&self) -> Transmission
fn clone(&self) -> Transmission
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more