From f6e4b5d25212ce15f7e83834e74908c62e92dcf0 Mon Sep 17 00:00:00 2001 From: Silas Bartha Date: Sun, 1 Dec 2024 22:08:20 -0500 Subject: normal factor --- src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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>, + /// 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, } } -- cgit v1.2.3