Exemplo n.º 1
0
        public void Combine(DrawState state)
        {
            CombineShader shader = state.GetShader<CombineShader>();

            shader.WorldTexture = _worldRenderTarget;
            shader.UITexture = _uiRenderTarget;
            shader.Bind(state);

            _vertices.Draw(state, null, PrimitiveType.TriangleStrip);
        }
Exemplo n.º 2
0
        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();
        }