Example #1
0
 public CrepuscularRays(Game game, Vector2 lightScreenSourcePos, string lightSourceImage, float lightSourceSize,
                        float density, float decay, float weight, float exposure) : base(game)
 {
     lsMask = new LightSourceMask(game, lightScreenSourcePos, lightSourceImage, lightSourceSize);
     rays   = new LightRay(game, lightScreenSourcePos, density, decay, weight, exposure);
     AddPostProcess(lsMask);
     AddPostProcess(rays);
 }
Example #2
0
 public CrepuscularRays(Game game, Vector2 lightScreenSourcePos, string lightSourceImage, float lightSourceSize, float density, float decay, float weight, float exposure)
     : base(game)
 {
     this.lsMask = new LightSourceMask(game, lightScreenSourcePos, lightSourceImage, lightSourceSize);
     this.rays = new LightRay(game, lightScreenSourcePos, density, decay, weight, exposure);
     base.AddPostProcess(this.lsMask);
     base.AddPostProcess(this.rays);
 }