diff options
author | HampusM <hampus@hampusmat.com> | 2024-11-23 21:32:26 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-11-23 21:32:26 +0100 |
commit | 89e3ba657eb0f51895750a6c966fe19d9f88ea6d (patch) | |
tree | 9675e4a5db6d4e5df080af1e46e4c7851856c6c3 /src | |
parent | daf280048d82eed42d44423ce50ae9e809ba91a9 (diff) |
chore: remove creating shader programs
Diffstat (limited to 'src')
-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(), )); |