예제 #1
0
        private void MoveSun(ComplexObject sceneObjects, float deltaTime)
        {
            var lights = sceneObjects.GetLightsWiThGlobalModelMatrices();
            var light  = lights.FirstOrDefault(x => x.Object.Name == "Sun");

            if (light != null)
            {
                light.Object.DiffuseIntensity = SunBrightness;
                light.Object.Rotation.X      += deltaTime * SunAnimationSpeed;
            }
        }