コード例 #1
0
        internal RendererCommonValues()
        {
            Material     = new Value.Enum <MaterialType>(MaterialType.Default);
            MaterialFile = new MaterialFileParameter(this);

            ColorTexture = new Value.PathForImage(Resources.GetString("ImageFilter"), true, "");
            Filter       = new Value.Enum <FilterType>(FilterType.Linear);
            Wrap         = new Value.Enum <WrapType>(WrapType.Repeat);

            NormalTexture = new Value.PathForImage(Resources.GetString("ImageFilter"), true, "");
            Filter2       = new Value.Enum <FilterType>(FilterType.Linear);
            Wrap2         = new Value.Enum <WrapType>(WrapType.Repeat);

            AlphaBlend = new Value.Enum <AlphaBlendType>(AlphaBlendType.Blend);

            FadeInType = new Value.Enum <FadeType>(FadeType.None);
            FadeInNone = new NoneParamater();
            FadeIn     = new FadeInParamater();

            FadeOutType = new Value.Enum <FadeType>();
            FadeOutNone = new NoneParamater();
            FadeOut     = new FadeOutParamater();

            UV = new Value.Enum <UVType>();

            UVTextureReferenceTarget = new Value.Enum <UVTextureReferenceTargetType>(UVTextureReferenceTargetType.Texture1);

            UVDefault   = new UVDefaultParamater();
            UVFixed     = new UVFixedParamater();
            UVAnimation = new UVAnimationParamater();
            UVScroll    = new UVScrollParamater();
            UVFCurve    = new UVFCurveParamater();

#if __EFFEKSEER_BUILD_VERSION16__
            UV2          = new Value.Enum <UVType>();
            UV2Default   = new UVDefaultParamater();
            UV2Fixed     = new UVFixedParamater();
            UV2Animation = new UVAnimationParamater();
            UV2Scroll    = new UVScrollParamater();
            UV2FCurve    = new UVFCurveParamater();
#endif

            ZWrite = new Value.Boolean(false);
            ZTest  = new Value.Boolean(true);

            ColorInheritType = new Value.Enum <ParentEffectType>(ParentEffectType.NotBind);

            DistortionIntensity = new Value.Float(1.0f, float.MaxValue, float.MinValue, 0.1f);

            CustomData1 = new CustomDataParameter(1);
            CustomData2 = new CustomDataParameter(2);
        }
コード例 #2
0
        internal RendererCommonValues(Value.Path basepath)
        {
            BasePath     = basepath;
            Material     = new Value.Enum <MaterialType>(MaterialType.Default);
            MaterialFile = new MaterialFileParameter(this);

            EmissiveScaling = new Value.Float(1.0f, float.MaxValue, 0.0f);

            ColorTexture = new Value.PathForImage(basepath, Resources.GetString("ImageFilter"), true, "");
            Filter       = new Value.Enum <FilterType>(FilterType.Linear);
            Wrap         = new Value.Enum <WrapType>(WrapType.Repeat);

            NormalTexture = new Value.PathForImage(basepath, Resources.GetString("ImageFilter"), true, "");
            Filter2       = new Value.Enum <FilterType>(FilterType.Linear);
            Wrap2         = new Value.Enum <WrapType>(WrapType.Repeat);

            AlphaBlend = new Value.Enum <AlphaBlendType>(AlphaBlendType.Blend);

            FadeInType = new Value.Enum <FadeType>(FadeType.None);
            FadeInNone = new NoneParamater();
            FadeIn     = new FadeInParamater();

            FadeOutType = new Value.Enum <FadeType>();
            FadeOutNone = new NoneParamater();
            FadeOut     = new FadeOutParamater();

            UV = new Value.Enum <UVType>();

            UVTextureReferenceTarget = new Value.Enum <UVTextureReferenceTargetType>(UVTextureReferenceTargetType.Texture1);

            UVDefault   = new UVDefaultParamater();
            UVFixed     = new UVFixedParamater();
            UVAnimation = new UVAnimationSupportedFrameBlendParameter();
            UVScroll    = new UVScrollParamater();
            UVFCurve    = new UVFCurveParamater();

            ZWrite = new Value.Boolean(false);
            ZTest  = new Value.Boolean(true);

            ColorInheritType = new Value.Enum <ParentEffectType>(ParentEffectType.NotBind);

            DistortionIntensity = new Value.Float(1.0f, float.MaxValue, float.MinValue, 0.1f);

            CustomData1 = new CustomDataParameter(1);
            CustomData2 = new CustomDataParameter(2);
        }