示例#1
0
        public MyEffectVoxelsBase(string asset)
            : base(asset)
        {
            m_projectionMatrix = m_D3DEffect.GetParameter(null, "ProjectionMatrix");

            m_textureDiffuseForAxisXZ   = m_D3DEffect.GetParameter(null, "TextureDiffuseForAxisXZ");
            m_textureDiffuseForAxisY    = m_D3DEffect.GetParameter(null, "TextureDiffuseForAxisY");
            m_textureNormalMapForAxisXZ = m_D3DEffect.GetParameter(null, "TextureNormalMapForAxisXZ");
            m_textureNormalMapForAxisY  = m_D3DEffect.GetParameter(null, "TextureNormalMapForAxisY");

            m_textureDiffuseForAxisXZ2   = m_D3DEffect.GetParameter(null, "TextureDiffuseForAxisXZ2");
            m_textureDiffuseForAxisY2    = m_D3DEffect.GetParameter(null, "TextureDiffuseForAxisY2");
            m_textureNormalMapForAxisXZ2 = m_D3DEffect.GetParameter(null, "TextureNormalMapForAxisXZ2");
            m_textureNormalMapForAxisY2  = m_D3DEffect.GetParameter(null, "TextureNormalMapForAxisY2");

            m_textureDiffuseForAxisXZ3   = m_D3DEffect.GetParameter(null, "TextureDiffuseForAxisXZ3");
            m_textureDiffuseForAxisY3    = m_D3DEffect.GetParameter(null, "TextureDiffuseForAxisY3");
            m_textureNormalMapForAxisXZ3 = m_D3DEffect.GetParameter(null, "TextureNormalMapForAxisXZ3");
            m_textureNormalMapForAxisY3  = m_D3DEffect.GetParameter(null, "TextureNormalMapForAxisY3");

            m_specularIntensity = m_D3DEffect.GetParameter(null, "SpecularIntensity");
            m_specularPower     = m_D3DEffect.GetParameter(null, "SpecularPower");

            m_specularIntensity2 = m_D3DEffect.GetParameter(null, "SpecularIntensity2");
            m_specularPower2     = m_D3DEffect.GetParameter(null, "SpecularPower2");

            m_specularIntensity3 = m_D3DEffect.GetParameter(null, "SpecularIntensity3");
            m_specularPower3     = m_D3DEffect.GetParameter(null, "SpecularPower3");

            m_textureDistances = m_D3DEffect.GetParameter(null, "TEXTURE_DISTANCE");
            m_textureScales    = m_D3DEffect.GetParameter(null, "TEXTURE_SCALE");

            m_lowTechnique     = m_D3DEffect.GetTechnique("Technique_RenderQualityLow");
            m_normalTechnique  = m_D3DEffect.GetTechnique("Technique_RenderQualityNormal");
            m_highTechnique    = m_D3DEffect.GetTechnique("Technique_RenderQualityHigh");
            m_extremeTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityExtreme");

            m_normalMultimaterialTechnique  = m_D3DEffect.GetTechnique("Technique_RenderQualityNormal_Multimaterial");
            m_highMultimaterialTechnique    = m_D3DEffect.GetTechnique("Technique_RenderQualityHigh_Multimaterial");
            m_extremeMultimaterialTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityExtreme_Multimaterial");

            m_normalFarTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityNormal_Far");
            m_normalMultimaterialFarTechnique = D3DEffect.GetTechnique("Technique_RenderQualityNormal_Mulitmaterial_Far");

            m_highFarTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityHigh_Far");
            m_highMultimaterialFarTechnique = D3DEffect.GetTechnique("Technique_RenderQualityHigh_Mulitmaterial_Far");

            m_extremeFarTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityExtreme_Far");
            m_extremeMultimaterialFarTechnique = D3DEffect.GetTechnique("Technique_RenderQualityExtreme_Mulitmaterial_Far");


            m_lowInstancedTechnique     = m_D3DEffect.GetTechnique("Technique_RenderQualityLow_Instanced");
            m_normalInstancedTechnique  = m_D3DEffect.GetTechnique("Technique_RenderQualityNormal_Instanced");
            m_highInstancedTechnique    = m_D3DEffect.GetTechnique("Technique_RenderQualityHigh_Instanced");
            m_extremeInstancedTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityExtreme_Instanced");

            DynamicLights = new MyEffectDynamicLightingBase(m_D3DEffect);
            Reflector     = new MyEffectReflectorBase(m_D3DEffect);
        }
示例#2
0
        public MyEffectDecals()
            : base("Effects2\\Decals\\MyDecalEffect")
        {
            m_voxelMapPosition     = m_D3DEffect.GetParameter(null, "VoxelMapPosition");
            m_positionLocalOffset  = m_D3DEffect.GetParameter(null, "PositionLocalOffset");
            m_positionLocalScale   = m_D3DEffect.GetParameter(null, "PositionLocalScale");
            m_techniqueVoxelDecals = m_D3DEffect.GetTechnique("TechniqueVoxelDecals");
            m_techniqueModelDecals = m_D3DEffect.GetTechnique("TechniqueModelDecals");

            m_decalDiffuseTexture   = m_D3DEffect.GetParameter(null, "DecalDiffuseTexture");
            m_decalNormalMapTexture = m_D3DEffect.GetParameter(null, "DecalNormalMapTexture");
            m_fadeoutDistance       = m_D3DEffect.GetParameter(null, "FadeoutDistance");
            m_worldMatrix           = m_D3DEffect.GetParameter(null, "WorldMatrix");
            m_viewProjectionMatrix  = m_D3DEffect.GetParameter(null, "ViewProjectionMatrix");
            m_emissivityColor       = m_D3DEffect.GetParameter(null, "EmissiveColor");

            DynamicLights = new MyEffectDynamicLightingBase(m_D3DEffect);
            Reflector     = new MyEffectReflectorBase(m_D3DEffect);
        }
        public MyEffectDecals()
            : base("Effects2\\Decals\\MyDecalEffect")
        {
            m_voxelMapPosition = m_D3DEffect.GetParameter(null, "VoxelMapPosition");
            m_positionLocalOffset = m_D3DEffect.GetParameter(null, "PositionLocalOffset");
            m_positionLocalScale = m_D3DEffect.GetParameter(null, "PositionLocalScale");
            m_techniqueVoxelDecals = m_D3DEffect.GetTechnique("TechniqueVoxelDecals");
            m_techniqueModelDecals = m_D3DEffect.GetTechnique("TechniqueModelDecals");

            m_decalDiffuseTexture = m_D3DEffect.GetParameter(null, "DecalDiffuseTexture");
            m_decalNormalMapTexture = m_D3DEffect.GetParameter(null, "DecalNormalMapTexture");
            m_fadeoutDistance = m_D3DEffect.GetParameter(null, "FadeoutDistance");
            m_worldMatrix = m_D3DEffect.GetParameter(null, "WorldMatrix");
            m_viewProjectionMatrix = m_D3DEffect.GetParameter(null, "ViewProjectionMatrix");
            m_emissivityColor = m_D3DEffect.GetParameter(null, "EmissiveColor");

            DynamicLights = new MyEffectDynamicLightingBase(m_D3DEffect);
            Reflector = new MyEffectReflectorBase(m_D3DEffect);
        }
示例#4
0
        public MyEffectTransparentGeometry()
            : base("Effects2\\TransparentGeometry\\MyEffectTransparentGeometry")
        {
            m_worldMatrix      = m_D3DEffect.GetParameter(null, "WorldMatrix");
            m_projectionMatrix = m_D3DEffect.GetParameter(null, "ProjectionMatrix");
            m_viewMatrix       = m_D3DEffect.GetParameter(null, "ViewMatrix");

            m_worldViewMatrix            = m_D3DEffect.GetParameter(null, "WorldViewMatrix");
            m_worldViewProjectionMatrix  = m_D3DEffect.GetParameter(null, "WorldViewProjectionMatrix");
            m_invDefaultProjectionMatrix = m_D3DEffect.GetParameter(null, "InvDefaultProjectionMatrix");

            m_billboardTexture      = m_D3DEffect.GetParameter(null, "BillboardTexture");
            m_billboardBlendTexture = m_D3DEffect.GetParameter(null, "BillboardBlendTexture");
            m_billboardBlendRatio   = m_D3DEffect.GetParameter(null, "BillboardBlendRatio");
            m_depthsRT  = m_D3DEffect.GetParameter(null, "DepthsRT");
            m_halfPixel = m_D3DEffect.GetParameter(null, "HalfPixel");
            m_scale     = m_D3DEffect.GetParameter(null, "Scale");
            m_softParticleDistanceScale = m_D3DEffect.GetParameter(null, "SoftParticleDistanceScale");

            m_colorizeColor         = m_D3DEffect.GetParameter(null, "ColorizeColor");
            m_colorizePlaneNormal   = m_D3DEffect.GetParameter(null, "ColorizePlaneNormal");
            m_colorizePlaneDistance = m_D3DEffect.GetParameter(null, "ColorizePlaneDistance");
            m_colorizeSoftDistance  = m_D3DEffect.GetParameter(null, "ColorizeSoftDistance");

            m_alphaMultiplier = m_D3DEffect.GetParameter(null, "AlphaMultiplierSaturation");

            m_litBasicTechnique          = m_D3DEffect.GetTechnique("Technique_LitBasic");
            m_unlitBasicTechnique        = m_D3DEffect.GetTechnique("Technique_UnlitBasic");
            m_unlitBasicForwardTechnique = m_D3DEffect.GetTechnique("Technique_UnlitBasic_Forward");
            m_ignoreDepthBasicTechnique  = m_D3DEffect.GetTechnique("Technique_IgnoreDepthBasic");
            m_colorizeTechnique          = m_D3DEffect.GetTechnique("Technique_ColorizeHeight");

            m_environmentMap = m_D3DEffect.GetParameter(null, "EnvTexture");

            m_reflectionTechnique = m_D3DEffect.GetTechnique("Technique_Reflection");

            m_visualizeOverdrawTechnique = m_D3DEffect.GetTechnique("Technique_VisualizeOverdraw");

            Reflector = new MyEffectReflectorBase(m_D3DEffect);
        }
        public MyEffectModelsDNS()
            : base("Effects2\\Models\\MyEffectModelsDNS")
        {
            m_viewMatrix = m_D3DEffect.GetParameter(null, "ViewMatrix");
            m_worldMatrix = m_D3DEffect.GetParameter(null, "WorldMatrix");
            m_projectionMatrix = m_D3DEffect.GetParameter(null, "ProjectionMatrix");

            m_textureDiffuse = m_D3DEffect.GetParameter(null, "TextureDiffuse");
            m_textureNormal = m_D3DEffect.GetParameter(null, "TextureNormal");
            m_diffuseColor = m_D3DEffect.GetParameter(null, "DiffuseColor");
            m_emissivity = m_D3DEffect.GetParameter(null, "Emissivity");
            m_emissivityOffset = m_D3DEffect.GetParameter(null, "EmissivityOffset");
            m_emissivityUVAnim = m_D3DEffect.GetParameter(null, "EmissivityUVAnim");
            m_diffuseUVAnim = m_D3DEffect.GetParameter(null, "DiffuseUVAnim");
            m_specularIntensity = m_D3DEffect.GetParameter(null, "SpecularIntensity");
            m_specularPower = m_D3DEffect.GetParameter(null, "SpecularPower");

            m_ditheringTexture = m_D3DEffect.GetParameter(null, "TextureDithering");
            m_ditheringTextureSize = m_D3DEffect.GetParameter(null, "TextureDitheringSize");
            m_depthTextureNear = m_D3DEffect.GetParameter(null, "DepthTextureNear");
            m_depthTextureFar = m_D3DEffect.GetParameter(null, "DepthTextureFar");
            m_halfPixel = m_D3DEffect.GetParameter(null, "HalfPixel");
            m_scale = m_D3DEffect.GetParameter(null, "Scale");
            m_bones = m_D3DEffect.GetParameter(null, "Bones");
            m_dithering = m_D3DEffect.GetParameter(null, "Dithering");
            m_time = m_D3DEffect.GetParameter(null, "Time");
            m_colorMaskEnabled = m_D3DEffect.GetParameter(null, "ColorMaskEnabled");
            m_colorMaskHSV = m_D3DEffect.GetParameter(null, "ColorMaskHSV");

            m_lowTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityLow");
            //m_lowInstancedTechnique = m_xnaEffect.GetTechnique("Technique_RenderQualityLowInstanced");
            m_lowBlendedTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityLowBlended");
            m_lowMaskedTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityLowMasked");

            m_normalTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityNormal");
            m_normalBlendedTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityNormalBlended");
            m_normalMaskedTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityNormalMasked");

            m_highTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityHigh");
            m_highBlendedTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityHighBlended");
            m_highMaskedTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityHighMasked");

            m_extremeTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityHigh");
            m_extremeBlendedTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityHighBlended");
            m_extremeMaskedTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityHighMasked");

            m_holoTechnique = m_D3DEffect.GetTechnique("Technique_Holo");
            m_holoIgnoreDepthTechnique = m_D3DEffect.GetTechnique("Technique_Holo_IgnoreDepth");

            m_stencilTechnique = m_D3DEffect.GetTechnique("Technique_Stencil");
            m_stencilLowTechnique = m_D3DEffect.GetTechnique("Technique_StencilLow");

            m_normalInstancedTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityNormalInstanced");

            m_highSkinnedTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityHighSkinned");
            m_highInstancedTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityHighInstanced");

            m_extremeSkinnedTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityExtremeSkinned");
            m_extremeInstancedTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityExtremeInstanced");

            m_normalInstancedSkinnedTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityNormalInstancedSkinned");
            m_highInstancedSkinnedTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityHighInstancedSkinned");
            m_extremeInstancedSkinnedTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityExtremeInstancedSkinned");

            m_instancedGenericTechnique = m_D3DEffect.GetTechnique("Technique_InstancedGeneric");
            m_instancedGenericMaskedTechnique = m_D3DEffect.GetTechnique("Technique_InstancedGenericMasked");

            DynamicLights = new MyEffectDynamicLightingBase(m_D3DEffect);
            Reflector = new MyEffectReflectorBase(m_D3DEffect);
        }
        public MyEffectVoxelsBase(string asset)
            : base(asset)
        {
            m_projectionMatrix = m_D3DEffect.GetParameter(null, "ProjectionMatrix");

            m_textureDiffuseForAxisXZ = m_D3DEffect.GetParameter(null, "TextureDiffuseForAxisXZ");
            m_textureDiffuseForAxisY = m_D3DEffect.GetParameter(null, "TextureDiffuseForAxisY");
            m_textureNormalMapForAxisXZ = m_D3DEffect.GetParameter(null, "TextureNormalMapForAxisXZ");
            m_textureNormalMapForAxisY = m_D3DEffect.GetParameter(null, "TextureNormalMapForAxisY");

            m_textureDiffuseForAxisXZ2 = m_D3DEffect.GetParameter(null, "TextureDiffuseForAxisXZ2");
            m_textureDiffuseForAxisY2 = m_D3DEffect.GetParameter(null, "TextureDiffuseForAxisY2");
            m_textureNormalMapForAxisXZ2 = m_D3DEffect.GetParameter(null, "TextureNormalMapForAxisXZ2");
            m_textureNormalMapForAxisY2 = m_D3DEffect.GetParameter(null, "TextureNormalMapForAxisY2");

            m_textureDiffuseForAxisXZ3 = m_D3DEffect.GetParameter(null, "TextureDiffuseForAxisXZ3");
            m_textureDiffuseForAxisY3 = m_D3DEffect.GetParameter(null, "TextureDiffuseForAxisY3");
            m_textureNormalMapForAxisXZ3 = m_D3DEffect.GetParameter(null, "TextureNormalMapForAxisXZ3");
            m_textureNormalMapForAxisY3 = m_D3DEffect.GetParameter(null, "TextureNormalMapForAxisY3");

            m_specularIntensity = m_D3DEffect.GetParameter(null, "SpecularIntensity");
            m_specularPower = m_D3DEffect.GetParameter(null, "SpecularPower");

            m_specularIntensity2 = m_D3DEffect.GetParameter(null, "SpecularIntensity2");
            m_specularPower2 = m_D3DEffect.GetParameter(null, "SpecularPower2");

            m_specularIntensity3 = m_D3DEffect.GetParameter(null, "SpecularIntensity3");
            m_specularPower3 = m_D3DEffect.GetParameter(null, "SpecularPower3");

            m_textureDistances = m_D3DEffect.GetParameter(null, "TEXTURE_DISTANCE");
            m_textureScales = m_D3DEffect.GetParameter(null, "TEXTURE_SCALE");

            m_lowTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityLow");
            m_normalTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityNormal");
            m_highTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityHigh");
            m_extremeTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityExtreme");

            m_normalMultimaterialTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityNormal_Multimaterial");
            m_highMultimaterialTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityHigh_Multimaterial");
            m_extremeMultimaterialTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityExtreme_Multimaterial");

            m_normalFarTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityNormal_Far");
            m_normalMultimaterialFarTechnique = D3DEffect.GetTechnique("Technique_RenderQualityNormal_Mulitmaterial_Far");

            m_highFarTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityHigh_Far");
            m_highMultimaterialFarTechnique = D3DEffect.GetTechnique("Technique_RenderQualityHigh_Mulitmaterial_Far");

            m_extremeFarTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityExtreme_Far");
            m_extremeMultimaterialFarTechnique = D3DEffect.GetTechnique("Technique_RenderQualityExtreme_Mulitmaterial_Far"); 


            m_lowInstancedTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityLow_Instanced");
            m_normalInstancedTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityNormal_Instanced");
            m_highInstancedTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityHigh_Instanced");
            m_extremeInstancedTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityExtreme_Instanced");

            DynamicLights = new MyEffectDynamicLightingBase(m_D3DEffect);
            Reflector = new MyEffectReflectorBase(m_D3DEffect);

        }
        public MyEffectTransparentGeometry()
            : base("Effects2\\TransparentGeometry\\MyEffectTransparentGeometry")
        {
            m_worldMatrix = m_D3DEffect.GetParameter(null, "WorldMatrix");
            m_projectionMatrix = m_D3DEffect.GetParameter(null, "ProjectionMatrix");
            m_viewMatrix = m_D3DEffect.GetParameter(null, "ViewMatrix");

            m_worldViewMatrix = m_D3DEffect.GetParameter(null, "WorldViewMatrix");
            m_worldViewProjectionMatrix = m_D3DEffect.GetParameter(null, "WorldViewProjectionMatrix");
            m_invDefaultProjectionMatrix = m_D3DEffect.GetParameter(null, "InvDefaultProjectionMatrix");

            m_billboardTexture = m_D3DEffect.GetParameter(null, "BillboardTexture");
            m_billboardBlendTexture = m_D3DEffect.GetParameter(null, "BillboardBlendTexture");
            m_billboardBlendRatio = m_D3DEffect.GetParameter(null, "BillboardBlendRatio");
            m_depthsRT = m_D3DEffect.GetParameter(null, "DepthsRT");
            m_halfPixel = m_D3DEffect.GetParameter(null, "HalfPixel");
            m_scale = m_D3DEffect.GetParameter(null, "Scale");
            m_softParticleDistanceScale = m_D3DEffect.GetParameter(null, "SoftParticleDistanceScale");

            m_colorizeColor = m_D3DEffect.GetParameter(null, "ColorizeColor");
            m_colorizePlaneNormal = m_D3DEffect.GetParameter(null, "ColorizePlaneNormal");
            m_colorizePlaneDistance = m_D3DEffect.GetParameter(null, "ColorizePlaneDistance");
            m_colorizeSoftDistance = m_D3DEffect.GetParameter(null, "ColorizeSoftDistance");

            m_alphaMultiplier = m_D3DEffect.GetParameter(null, "AlphaMultiplierSaturation");

            m_litBasicTechnique = m_D3DEffect.GetTechnique("Technique_LitBasic");
            m_unlitBasicTechnique = m_D3DEffect.GetTechnique("Technique_UnlitBasic");
            m_unlitBasicForwardTechnique = m_D3DEffect.GetTechnique("Technique_UnlitBasic_Forward");
            m_ignoreDepthBasicTechnique = m_D3DEffect.GetTechnique("Technique_IgnoreDepthBasic");
            m_colorizeTechnique = m_D3DEffect.GetTechnique("Technique_ColorizeHeight");

            m_environmentMap = m_D3DEffect.GetParameter(null, "EnvTexture");

            m_reflectionTechnique = m_D3DEffect.GetTechnique("Technique_Reflection");

            m_visualizeOverdrawTechnique = m_D3DEffect.GetTechnique("Technique_VisualizeOverdraw");

            Reflector = new MyEffectReflectorBase(m_D3DEffect);
        }
示例#8
0
        public MyEffectModelsDNS()
            : base("Effects2\\Models\\MyEffectModelsDNS")
        {
            m_viewMatrix       = m_D3DEffect.GetParameter(null, "ViewMatrix");
            m_worldMatrix      = m_D3DEffect.GetParameter(null, "WorldMatrix");
            m_projectionMatrix = m_D3DEffect.GetParameter(null, "ProjectionMatrix");

            m_textureDiffuse    = m_D3DEffect.GetParameter(null, "TextureDiffuse");
            m_textureNormal     = m_D3DEffect.GetParameter(null, "TextureNormal");
            m_diffuseColor      = m_D3DEffect.GetParameter(null, "DiffuseColor");
            m_emissivity        = m_D3DEffect.GetParameter(null, "Emissivity");
            m_emissivityOffset  = m_D3DEffect.GetParameter(null, "EmissivityOffset");
            m_emissivityUVAnim  = m_D3DEffect.GetParameter(null, "EmissivityUVAnim");
            m_diffuseUVAnim     = m_D3DEffect.GetParameter(null, "DiffuseUVAnim");
            m_specularIntensity = m_D3DEffect.GetParameter(null, "SpecularIntensity");
            m_specularPower     = m_D3DEffect.GetParameter(null, "SpecularPower");

            m_ditheringTexture     = m_D3DEffect.GetParameter(null, "TextureDithering");
            m_ditheringTextureSize = m_D3DEffect.GetParameter(null, "TextureDitheringSize");
            m_depthTextureNear     = m_D3DEffect.GetParameter(null, "DepthTextureNear");
            m_depthTextureFar      = m_D3DEffect.GetParameter(null, "DepthTextureFar");
            m_halfPixel            = m_D3DEffect.GetParameter(null, "HalfPixel");
            m_scale            = m_D3DEffect.GetParameter(null, "Scale");
            m_bones            = m_D3DEffect.GetParameter(null, "Bones");
            m_dithering        = m_D3DEffect.GetParameter(null, "Dithering");
            m_time             = m_D3DEffect.GetParameter(null, "Time");
            m_colorMaskEnabled = m_D3DEffect.GetParameter(null, "ColorMaskEnabled");
            m_colorMaskHSV     = m_D3DEffect.GetParameter(null, "ColorMaskHSV");

            m_lowTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityLow");
            //m_lowInstancedTechnique = m_xnaEffect.GetTechnique("Technique_RenderQualityLowInstanced");
            m_lowBlendedTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityLowBlended");
            m_lowMaskedTechnique  = m_D3DEffect.GetTechnique("Technique_RenderQualityLowMasked");

            m_normalTechnique        = m_D3DEffect.GetTechnique("Technique_RenderQualityNormal");
            m_normalBlendedTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityNormalBlended");
            m_normalMaskedTechnique  = m_D3DEffect.GetTechnique("Technique_RenderQualityNormalMasked");

            m_highTechnique        = m_D3DEffect.GetTechnique("Technique_RenderQualityHigh");
            m_highBlendedTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityHighBlended");
            m_highMaskedTechnique  = m_D3DEffect.GetTechnique("Technique_RenderQualityHighMasked");

            m_extremeTechnique        = m_D3DEffect.GetTechnique("Technique_RenderQualityHigh");
            m_extremeBlendedTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityHighBlended");
            m_extremeMaskedTechnique  = m_D3DEffect.GetTechnique("Technique_RenderQualityHighMasked");

            m_holoTechnique            = m_D3DEffect.GetTechnique("Technique_Holo");
            m_holoIgnoreDepthTechnique = m_D3DEffect.GetTechnique("Technique_Holo_IgnoreDepth");

            m_stencilTechnique    = m_D3DEffect.GetTechnique("Technique_Stencil");
            m_stencilLowTechnique = m_D3DEffect.GetTechnique("Technique_StencilLow");

            m_normalInstancedTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityNormalInstanced");

            m_highSkinnedTechnique   = m_D3DEffect.GetTechnique("Technique_RenderQualityHighSkinned");
            m_highInstancedTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityHighInstanced");

            m_extremeSkinnedTechnique   = m_D3DEffect.GetTechnique("Technique_RenderQualityExtremeSkinned");
            m_extremeInstancedTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityExtremeInstanced");

            m_normalInstancedSkinnedTechnique  = m_D3DEffect.GetTechnique("Technique_RenderQualityNormalInstancedSkinned");
            m_highInstancedSkinnedTechnique    = m_D3DEffect.GetTechnique("Technique_RenderQualityHighInstancedSkinned");
            m_extremeInstancedSkinnedTechnique = m_D3DEffect.GetTechnique("Technique_RenderQualityExtremeInstancedSkinned");

            m_instancedGenericTechnique       = m_D3DEffect.GetTechnique("Technique_InstancedGeneric");
            m_instancedGenericMaskedTechnique = m_D3DEffect.GetTechnique("Technique_InstancedGenericMasked");

            DynamicLights = new MyEffectDynamicLightingBase(m_D3DEffect);
            Reflector     = new MyEffectReflectorBase(m_D3DEffect);
        }