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); }
public void Initialize(GraphicsDevice graphics) { _graphicsDevice = graphics; _fsqRenderer = new FullScreenQuadRenderer(graphics); }