aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLibravatar Silas Bartha <[email protected]>2024-12-01 22:08:20 -0500
committerLibravatar Silas Bartha <[email protected]>2024-12-01 22:08:20 -0500
commitf6e4b5d25212ce15f7e83834e74908c62e92dcf0 (patch)
tree99a51515e35ad2656db9c6ee3c8240966653d8aa /src
parent09d3766f7404d5ef50fb022e9e70d700073033c2 (diff)
normal factor
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 2ff9974..c7a86f8 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -54,6 +54,9 @@ pub struct BlacklightMaterial {
#[texture(1)]
#[sampler(2)]
pub base_texture: Option<Handle<Image>>,
+ /// Base color of material, multiplies with texture.
+ #[uniform(3)]
+ pub base_color: LinearRgba,
/// Alpha mode for this material.
pub alpha_mode: AlphaMode,
}
@@ -63,6 +66,7 @@ impl Default for BlacklightMaterial {
Self {
lights: vec![],
base_texture: None,
+ base_color: LinearRgba::WHITE,
alpha_mode: AlphaMode::Blend,
}
}