protected override void DoInitialize()
{
{
// This is the texture that the compute program will write into
var bitmap = new System.Drawing.Bitmap(@"Textures\PointSprite.png");
var texture = new Texture(TextureTarget.Texture2D, bitmap, new SamplerParameters());
texture.Initialize();
bitmap.Dispose();
this.spriteTexture = texture;
}
base.DoInitialize();
this.SetUniform("spriteTexture", this.spriteTexture);
this.SetUniform("factor", 50.0f);
}