summaryrefslogtreecommitdiff
path: root/engine/src/rendering/shader.rs
diff options
context:
space:
mode:
Diffstat (limited to 'engine/src/rendering/shader.rs')
-rw-r--r--engine/src/rendering/shader.rs18
1 files changed, 2 insertions, 16 deletions
diff --git a/engine/src/rendering/shader.rs b/engine/src/rendering/shader.rs
index 6f50a79..12fc9c1 100644
--- a/engine/src/rendering/shader.rs
+++ b/engine/src/rendering/shader.rs
@@ -31,25 +31,18 @@ use crate::asset::{
};
use crate::builder;
use crate::ecs::pair::ChildOf;
-use crate::ecs::phase::{Phase, POST_UPDATE as POST_UPDATE_PHASE};
+use crate::ecs::phase::Phase;
use crate::ecs::sole::Single;
-use crate::ecs::{declare_entity, pair, Component, Sole};
+use crate::ecs::{declare_entity, pair, Sole};
use crate::mesh::vertex_buffer::VertexLabel;
pub mod cursor;
-pub mod default;
pub const STD_VERTEX_INPUT_SEMANTIC_NAME_POSITION: &str = "STD_POSITION";
pub const STD_VERTEX_INPUT_SEMANTIC_NAME_NORMAL: &str = "STD_NORMAL";
pub const STD_VERTEX_INPUT_SEMANTIC_NAME_UV: &str = "STD_UV";
pub const STD_VERTEX_INPUT_SEMANTIC_NAME_COLOR: &str = "STD_COLOR";
-#[derive(Debug, Clone, Component)]
-pub struct Shader
-{
- pub asset_handle: AssetHandle<ModuleSource>,
-}
-
/// Shader module.
#[derive(Debug)]
pub struct ModuleSource
@@ -1319,13 +1312,6 @@ pub(super) fn prepare(collector: &mut crate::ecs::extension::Collector<'_>)
collector.add_system(*INIT_PHASE, initialize);
collector.add_system(*IMPORT_SHADERS_PHASE, load_modules);
-
- collector.add_system(*INIT_PHASE, crate::rendering::shader::default::initialize);
-
- collector.add_system(
- *POST_UPDATE_PHASE,
- crate::rendering::shader::default::enqueue_set_shader_bindings,
- );
}
fn initialize(mut assets: Single<Assets>) -> Result<(), crate::Error>