Exemple #1
0
        public override void Apply()
        {
            Effect.DiffuseColor      = DiffuseColor;
            Effect.AmbientLightColor = AmbientLightColor;
            Effect.EmissiveColor     = EmissiveColor;
            DirectionalLight0.CopyTo(Effect.DirectionalLight0);
            DirectionalLight1.CopyTo(Effect.DirectionalLight1);
            DirectionalLight2.CopyTo(Effect.DirectionalLight2);
            Effect.Alpha = Alpha;

            Effect.WeightsPerVertex = WeightsPerVertex;

            base.Apply();
        }
Exemple #2
0
        public override void Apply()
        {
            Effect.DiffuseColor      = DiffuseColor;
            Effect.AmbientLightColor = AmbientLightColor;
            Effect.EmissiveColor     = EmissiveColor;
            DirectionalLight0.CopyTo(Effect.DirectionalLight0);
            DirectionalLight1.CopyTo(Effect.DirectionalLight1);
            DirectionalLight2.CopyTo(Effect.DirectionalLight2);
            Effect.Alpha = Alpha;

            Effect.EnvironmentMapAmount   = EnvironmentMapAmount;
            Effect.EnvironmentMapSpecular = EnvironmentMapSpecular;
            Effect.FresnelFactor          = FresnelFactor;

            base.Apply();
        }
Exemple #3
0
        public override void Apply()
        {
            Effect.DiffuseColor      = DiffuseColor;
            Effect.AmbientLightColor = AmbientLightColor;
            Effect.EmissiveColor     = EmissiveColor;
            DirectionalLight0.CopyTo(Effect.DirectionalLight0);
            DirectionalLight1.CopyTo(Effect.DirectionalLight1);
            DirectionalLight2.CopyTo(Effect.DirectionalLight2);
            Effect.Alpha = Alpha;

            Effect.TextureEnabled     = TextureEnabled;
            Effect.VertexColorEnabled = VertexColorEnabled;
            Effect.LightingEnabled    = LightingEnabled;

            base.Apply();
        }