public void GenerateIrradianceCubemapFromCubemap()
        {
            //Given
            FearGraphicsDevice device        = new SharpDXGraphicsDevice(SharpDX.Toolkit.Graphics.GraphicsDevice.New(DeviceCreationFlags.Debug));
            Material           computeShader = LoadComputeShader(device);

            IrradianceCubeMapGenerator irrCubeGen = new IrradianceCubeMapGenerator(device, computeShader);

            TextureCube source = LoadOriginalCubemap(device);

            //When
            irrCubeGen.GenerateIrradianceCubemapFromTextureCube(source);
        }
Пример #2
0
        public void Draw(GameTimer gameTime)
        {
            scene.Render(gameTime);

            irrCubeGen.GenerateIrradianceCubemapFromTextureCube(source);
        }