added pure color texture (#845)

This commit is contained in:
LuoZheng2002
2025-09-30 14:13:57 +03:00
committed by GitHub
parent 7a71aa9bb5
commit 32b131a896
3 changed files with 12 additions and 0 deletions
+1
View File
@@ -1307,6 +1307,7 @@ pub(crate) fn initialize_resource_manager_loaders(
state.built_in_resources.add(BUILT_IN_FONT.clone());
state.built_in_resources.add(texture::PLACEHOLDER.clone());
state.built_in_resources.add(texture::PURE_COLOR.clone());
state.built_in_resources.add(style::DEFAULT_STYLE.clone());
for material in [
+11
View File
@@ -682,6 +682,17 @@ lazy_static! {
)
.unwrap()
});
/// Pure color texture.
pub static ref PURE_COLOR: BuiltInResource<Texture> = BuiltInResource::new("__PureColorTexture", embedded_data_source!("pure_color.png"),
|data| {
TextureResource::load_from_memory(
uuid!("9709eef2-305c-44da-91e5-6f293d74408a"),
ResourceKind::External,
data,
Default::default()
)
.unwrap()
});
}
/// Type alias for texture resources.
Binary file not shown.

After

Width:  |  Height:  |  Size: 120 B