diff options
author | Silas Bartha <[email protected]> | 2024-12-01 22:08:20 -0500 |
---|---|---|
committer | Silas Bartha <[email protected]> | 2024-12-01 22:08:20 -0500 |
commit | f6e4b5d25212ce15f7e83834e74908c62e92dcf0 (patch) | |
tree | 99a51515e35ad2656db9c6ee3c8240966653d8aa /src/lib.rs | |
parent | 09d3766f7404d5ef50fb022e9e70d700073033c2 (diff) |
normal factor
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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, } } |