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: String
The second texture to blend to.
surface_prop: Option<String>
Links the surface to a set of physical properties.
base_texture_transform: TextureTransform
Transforms the texture before use in the material. This does not affect lightmaps on the surface.
color: Vec3
Independently scales the red, green and blue channels of an albedo.
color2: Vec3
Independently scales the red, green and blue channels of an albedo.
alpha: f32
Scales the opacity of an entire material.
alpha_test: bool
Specifies a mask to use to determine binary opacity.
alpha_test_reference: f32
Specifies a mask to use to determine binary opacity.
distance_alpha: bool
Vector-like edge filtering.
no_cull: bool
Disables backface culling.
translucent: bool
Specifies 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: bool
Determines whether the surface is self-illuminated independent of environment lighting.
ss_bump: bool
Flags the $bumpmap as being a self-shadowing bumpmap.
env_map: Option<String>
Specular reflections.
phong: f32
Diffuse reflections.
no_fog: bool
Prevents fog from overdrawing a material.
ignore_z: bool
Ignore 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