Skip to content

Commit

Permalink
TypeUuid and uuid references removed.
Browse files Browse the repository at this point in the history
  • Loading branch information
divark committed Nov 13, 2023
1 parent 6bd512e commit 50718d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
9 changes: 2 additions & 7 deletions examples/custom_shader.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
use bevy::{
prelude::*,
reflect::{TypePath, TypeUuid},
render::render_resource::AsBindGroup,
};
use bevy::{prelude::*, reflect::TypePath, render::render_resource::AsBindGroup};
use bevy_ecs_tilemap::prelude::*;
mod helpers;

#[derive(AsBindGroup, TypeUuid, TypePath, Debug, Clone, Default, Asset)]
#[uuid = "31575692-a956-4762-98e2-5d457f552d0a"]
#[derive(AsBindGroup, TypePath, Debug, Clone, Default, Asset)]
pub struct MyMaterial {
#[uniform(0)]
brightness: f32,
Expand Down
5 changes: 2 additions & 3 deletions src/render/material.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use bevy::{
core_pipeline::core_2d::Transparent2d,
prelude::*,
reflect::{TypePath, TypeUuid},
reflect::TypePath,
render::{
extract_component::ExtractComponentPlugin,
globals::GlobalsBuffer,
Expand Down Expand Up @@ -523,8 +523,7 @@ pub fn queue_material_tilemap_meshes<M: MaterialTilemap>(
}
}

#[derive(AsBindGroup, TypeUuid, Debug, Clone, Default, TypePath, Asset)]
#[uuid = "d6f8aeb8-510c-499a-9c0b-38551ae0b72a"]
#[derive(AsBindGroup, Debug, Clone, Default, TypePath, Asset)]
pub struct StandardTilemapMaterial {}

impl MaterialTilemap for StandardTilemapMaterial {}

0 comments on commit 50718d6

Please sign in to comment.