From 89e3ba657eb0f51895750a6c966fe19d9f88ea6d Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 23 Nov 2024 21:32:26 +0100 Subject: chore: remove creating shader programs --- src/main.rs | 3 --- 1 file changed, 3 deletions(-) (limited to 'src') diff --git a/src/main.rs b/src/main.rs index 8710a21..9405abe 100644 --- a/src/main.rs +++ b/src/main.rs @@ -18,7 +18,6 @@ use engine::input::Extension as InputExtension; use engine::lighting::{AttenuationParams, GlobalLight, PointLight}; use engine::material::{Builder as MaterialBuilder, Flags as MaterialFlags}; use engine::renderer::opengl::Extension as OpenglRendererExtension; -use engine::shader::Program as ShaderProgram; use engine::transform::Position; use engine::vector::Vec3; use engine::window::{ @@ -72,7 +71,6 @@ fn main() -> Result<(), Box> teapot_obj.to_mesh()?, teapot_mat.material, Position::from(Vec3 { x: 1.6, y: 0.0, z: 0.0 }), - ShaderProgram::new()?, )); engine.spawn(( @@ -89,7 +87,6 @@ fn main() -> Result<(), Box> parse_obj(&read_to_string(Path::new(RESOURCE_DIR).join("cube.obj"))?)? .to_mesh()?, MaterialBuilder::new().ambient(YELLOW * 5.0).build(), - ShaderProgram::new()?, MaterialFlags::builder().use_ambient_color(true).build(), )); -- cgit v1.2.3-18-g5258