コード例 #1
0
        public SSAOEffect(Game game, float radius, float intensity, float scale, float bias)
            : base(game)
        {
            ssao = new SSAO(game, radius, intensity, scale, bias);

            posMap = new WorldPositionMap(game);

            blur = new PoissonDiscBlur(game);
            blur.Sampler = SamplerState.PointClamp;

            blend = new SceneBlend(game);
            blend.Blend = true;
            blend.Sampler = SamplerState.PointClamp;


            AddPostProcess(posMap);
            AddPostProcess(ssao);
            AddPostProcess(blur);
            AddPostProcess(blend);
        }
コード例 #2
0
        public SSAOEffect(Game game, float radius, float intensity, float scale, float bias)
            : base(game)
        {
            ssao = new SSAO(game, radius, intensity, scale, bias);

            posMap = new WorldPositionMap(game);

            blur         = new PoissonDiscBlur(game);
            blur.Sampler = SamplerState.PointClamp;

            blend         = new SceneBlend(game);
            blend.Blend   = true;
            blend.Sampler = SamplerState.PointClamp;


            AddPostProcess(posMap);
            AddPostProcess(ssao);
            AddPostProcess(blur);
            AddPostProcess(blend);
        }