pub struct UnlitTwoTextureMaterial {Show 21 fields
pub base_texture: Option<String>,
pub texture2: String,
pub surface_prop: Option<String>,
pub base_texture_transform: TextureTransform,
pub color: Vec3,
pub color2: Vec3,
pub alpha: f32,
pub alpha_test: bool,
pub alpha_test_reference: f32,
pub distance_alpha: bool,
pub no_cull: bool,
pub translucent: bool,
pub bump_map: Option<String>,
pub bump_map2: Option<String>,
pub light_wrap_texture: Option<String>,
pub self_illum: bool,
pub ss_bump: bool,
pub env_map: Option<String>,
pub phong: f32,
pub no_fog: bool,
pub ignore_z: bool,
}Fields§
§base_texture: Option<String>The first texture in the blend.
texture2: StringThe second texture to blend to.
surface_prop: Option<String>Links the surface to a set of physical properties.
base_texture_transform: TextureTransformTransforms the texture before use in the material. This does not affect lightmaps on the surface.
color: Vec3Independently scales the red, green and blue channels of an albedo.
color2: Vec3Independently scales the red, green and blue channels of an albedo.
alpha: f32Scales the opacity of an entire material.
alpha_test: boolSpecifies a mask to use to determine binary opacity.
alpha_test_reference: f32Specifies a mask to use to determine binary opacity.
distance_alpha: boolVector-like edge filtering.
no_cull: boolDisables backface culling.
translucent: boolSpecifies that the material should be partially see-through.
bump_map: Option<String>bumpmap for the first texture.
bump_map2: Option<String>bumpmap for the second texture.
light_wrap_texture: Option<String>Per-texel color modification via a warp texture.
self_illum: boolDetermines whether the surface is self-illuminated independent of environment lighting.
ss_bump: boolFlags the $bumpmap as being a self-shadowing bumpmap.
env_map: Option<String>Specular reflections.
phong: f32Diffuse reflections.
no_fog: boolPrevents fog from overdrawing a material.
ignore_z: boolIgnore z filtering
Trait Implementations§
Source§impl Clone for UnlitTwoTextureMaterial
impl Clone for UnlitTwoTextureMaterial
Source§fn clone(&self) -> UnlitTwoTextureMaterial
fn clone(&self) -> UnlitTwoTextureMaterial
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more