protected override void BindShader(DrawState state, bool maskOnly) { SimpleTextureEffect shader = state.GetShader <SimpleTextureEffect>(); shader.Texture = _texture; shader.Bind(state); }
private void Render(DrawState state) { SimpleTextureEffect shader = state.GetShader <SimpleTextureEffect>(); state.PushCamera(camera); shader.Texture = _texture; shader.Bind(state); _vertices.Draw(state, null, PrimitiveType.TriangleStrip); state.PopCamera(); }