Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
        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);

        }
Ejemplo n.º 6
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);
        }