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(); }
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(); }
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(); }