public override void DrawShadow(Light a_light) { if (m_model != null) { lock (this) { GraphicsCommand.BindModel(m_model); GraphicsCommand.DrawElementsUInt(m_model.Indices); } } }
public override void Draw(Camera a_camera) { if (m_model != null) { lock (this) { GraphicsCommand.BindModel(m_model); GraphicsCommand.DrawElementsUInt(m_model.Indices); } } }
public override void DrawShadow(Light a_light) { if (m_model != null) { lock (this) { if (m_matrices != null) { GraphicsCommand.BindMatrix4(Material.Program, 128, m_matrices); } GraphicsCommand.BindModel(m_model); GraphicsCommand.DrawElementsUInt(m_model.Indices); } } }
public override void Draw(Camera a_camera) { if (m_model != null) { lock (this) { // Dirty but works if (m_matrices != null) { GraphicsCommand.BindMatrix4(Material.Program, 128, m_matrices); } GraphicsCommand.BindModel(m_model); GraphicsCommand.DrawElementsUInt(m_model.Indices); } } }