Example #1
0
        public SampleShader(GraphicsDevice graphics, ContentManager content, string shaderPath)
        {
            var shaderEffect = content.Load <Effect>(shaderPath);

            _lastPositionsParam = shaderEffect.Parameters["LastPositions"];
            _positionsParam     = shaderEffect.Parameters["Positions"];
            _colorsParam        = shaderEffect.Parameters["Colors"];
            _texParam           = shaderEffect.Parameters["Tex"];

            _trailPass = shaderEffect.Techniques["Trails"].Passes[0];
            _fsq       = new FullScreenQuadRenderer(graphics);
        }
Example #2
0
        public void Initialize(GraphicsDevice graphics)
        {
            _graphicsDevice = graphics;

            _fsqRenderer = new FullScreenQuadRenderer(graphics);
        }