public MyEffectVolumetricFog()
            : base("Effects2\\Fullscreen\\MyEffectVolumetricFog")
        {
            m_sourceRT = m_D3DEffect.GetParameter(null, "SourceRT");
            m_depthsRT = m_D3DEffect.GetParameter(null, "DepthsRT");
            m_normalsTexture = m_D3DEffect.GetParameter(null, "NormalsTexture");
            m_halfPixel = m_D3DEffect.GetParameter(null, "HalfPixel");
            m_worldMatrix = m_D3DEffect.GetParameter(null, "WorldMatrix");
            m_viewProjectionMatrix = m_D3DEffect.GetParameter(null, "ViewProjectionMatrix");
            m_cameraPosition = m_D3DEffect.GetParameter(null, "CameraPos");
            m_cameraMatrix = m_D3DEffect.GetParameter(null, "CameraMatrix");
            m_frustumCorners = m_D3DEffect.GetParameter(null, "FrustumCorners");

            m_defaultTechnique = m_D3DEffect.GetTechnique("Technique1");
            m_skipBackgroundTechnique = m_D3DEffect.GetTechnique("SkipBackgroundTechnique");

            PerlinNoise = new MyEffectPerlinNoiseBase(m_D3DEffect);
        }
Пример #2
0
        public MyEffectVolumetricFog()
            : base("Effects2\\Fullscreen\\MyEffectVolumetricFog")
        {
            m_sourceRT             = m_D3DEffect.GetParameter(null, "SourceRT");
            m_depthsRT             = m_D3DEffect.GetParameter(null, "DepthsRT");
            m_normalsTexture       = m_D3DEffect.GetParameter(null, "NormalsTexture");
            m_halfPixel            = m_D3DEffect.GetParameter(null, "HalfPixel");
            m_worldMatrix          = m_D3DEffect.GetParameter(null, "WorldMatrix");
            m_viewProjectionMatrix = m_D3DEffect.GetParameter(null, "ViewProjectionMatrix");
            m_cameraPosition       = m_D3DEffect.GetParameter(null, "CameraPos");
            m_cameraMatrix         = m_D3DEffect.GetParameter(null, "CameraMatrix");
            m_frustumCorners       = m_D3DEffect.GetParameter(null, "FrustumCorners");

            m_defaultTechnique        = m_D3DEffect.GetTechnique("Technique1");
            m_skipBackgroundTechnique = m_D3DEffect.GetTechnique("SkipBackgroundTechnique");

            PerlinNoise = new MyEffectPerlinNoiseBase(m_D3DEffect);
        }
        public MyEffectDistantImpostors()
            : base("Effects2\\BackgroundCube\\MyDistantImpostorEffect")
        {
            m_impostorTexture = m_D3DEffect.GetParameter(null, "ImpostorTexture");
            m_worldMatrix = m_D3DEffect.GetParameter(null, "WorldMatrix");
            m_viewProjectionMatrix = m_D3DEffect.GetParameter(null, "ViewProjectionMatrix");
            m_scale = m_D3DEffect.GetParameter(null, "Scale");
            m_cameraPos = m_D3DEffect.GetParameter(null, "CameraPos");
            m_animation = m_D3DEffect.GetParameter(null, "Animation");
            m_contrastAndIntensity = m_D3DEffect.GetParameter(null, "ContrastAndIntensity");
            m_color = m_D3DEffect.GetParameter(null, "Color");
            m_sunDirection = m_D3DEffect.GetParameter(null, "SunDir");

            m_defaultTechnique = m_D3DEffect.GetTechnique("Default");
            m_coloredTechnique = m_D3DEffect.GetTechnique("Colored");
            m_coloredLitTechnique = m_D3DEffect.GetTechnique("ColoredLit");
            m_textured3DTechnique = m_D3DEffect.GetTechnique("Textured3D");

            PerlinBase = new MyEffectPerlinNoiseBase(m_D3DEffect);
        }
Пример #4
0
        public MyEffectDistantImpostors()
            : base("Effects2\\BackgroundCube\\MyDistantImpostorEffect")
        {
            m_impostorTexture      = m_D3DEffect.GetParameter(null, "ImpostorTexture");
            m_worldMatrix          = m_D3DEffect.GetParameter(null, "WorldMatrix");
            m_viewProjectionMatrix = m_D3DEffect.GetParameter(null, "ViewProjectionMatrix");
            m_scale                = m_D3DEffect.GetParameter(null, "Scale");
            m_cameraPos            = m_D3DEffect.GetParameter(null, "CameraPos");
            m_animation            = m_D3DEffect.GetParameter(null, "Animation");
            m_contrastAndIntensity = m_D3DEffect.GetParameter(null, "ContrastAndIntensity");
            m_color                = m_D3DEffect.GetParameter(null, "Color");
            m_sunDirection         = m_D3DEffect.GetParameter(null, "SunDir");

            m_defaultTechnique    = m_D3DEffect.GetTechnique("Default");
            m_coloredTechnique    = m_D3DEffect.GetTechnique("Colored");
            m_coloredLitTechnique = m_D3DEffect.GetTechnique("ColoredLit");
            m_textured3DTechnique = m_D3DEffect.GetTechnique("Textured3D");

            PerlinBase = new MyEffectPerlinNoiseBase(m_D3DEffect);
        }