Also setup states before rendering
@@ -45,7 +45,9 @@ impl Model
pub fn draw(&self, input: &input::DrawInput) -> Result<(), Error>
{
self.material.apply();
+ self.material.setup_states()?;
self.material.setup_uniforms(&input)?;
+
unsafe {
self.gl.BindVertexArray(self.id);
self.gl.DrawArrays(
