diff options
-rw-r--r-- | src/main.rs | 3 |
1 files changed, 0 insertions, 3 deletions
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<dyn Error>> 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<dyn Error>> 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(), )); |