blob: 151aec995a61ece460556f0ed11779bb92ecbe67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
namespace Celesteia.Game.Components.Skybox {
public class SkyboxRotateZ {
public float _magnitude = 1f;
// Amount to rotate by.
public float Magnitude { get { return _magnitude; } }
// Current rotation.
public float Current = 0f;
public SkyboxRotateZ(float magnitude) {
_magnitude = magnitude;
// Offset the starting rotation.
Current = _magnitude * 256f;
}
}
}
|