Exemplo n.º 1
0
        public void Draw(PrimitiveType type, byte[] indices, bool drawNormals)
        {
            if (_mode == ModelRenderMode.Wireframe)
            {
                UseWireFrameShader();
            }
            else
            {
                UseVertexShader();
            }

            _attrs.Draw(type, indices);

            if (drawNormals)
            {
                UseNormalShader();
                _attrs.Draw(type, indices);
            }
        }
Exemplo n.º 2
0
 public virtual void Draw(PrimitiveType type, byte[] indices)
 {
     _shader.Use();
     _attrs.Draw(type, indices);
 }