示例#1
0
        public CrepuscularRays(Game game, Vector3 lightSourcePos, string lightSourceImage, float lightSourceSize, float density, float decay, float weight, float exposure, float brightThreshold)
            : base(game)
        {
            lsMask = new LightSourceMask(game, lightSourcePos, lightSourceImage, lightSourceSize);
            mask   = new LightSceneMask(game, lightSourcePos);
            rays   = new LightRay(game, lightSourcePos, density, decay, weight, exposure);
            bp     = new BrightPass(game, brightThreshold);
            blend  = new SceneBlend(game);

            AddPostProcess(lsMask);
            AddPostProcess(mask);
            AddPostProcess(rays);
            AddPostProcess(bp);
            AddPostProcess(blend);
        }
        public CrepuscularRays(Game game, Vector3 lightSourcePos, string lightSourceImage, float lightSourceSize, float density, float decay, float weight, float exposure, float brightThreshold)
            : base(game)
        {
            lsMask = new LightSourceMask(game, lightSourcePos, lightSourceImage, lightSourceSize);
            mask = new LightSceneMask(game, lightSourcePos);
            rays = new LightRay(game, lightSourcePos, density, decay, weight, exposure);
            bp = new BrightPass(game, brightThreshold);
            blend = new SceneBlend(game);

            AddPostProcess(lsMask);
            AddPostProcess(mask);
            AddPostProcess(rays);
            AddPostProcess(bp);
            AddPostProcess(blend);
        }