Expose the time-of-day weights
This commit is contained in:
1 parent
3d5eecc46e
commit
ac4039595c
1 file changed
+6
-7
@@ -459,13 +459,12 @@ namespace Cthangover.Mods.Time
|
|||||||
return SceneContextNode.FindNode<LampBehaviour>("Lamp");
|
return SceneContextNode.FindNode<LampBehaviour>("Lamp");
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
/// <summary>
|
||||||
// 06:00-10:00 - Morning
|
/// Blend weights of the four phases (morning, day, evening, night) for an hour 0–24, with
|
||||||
// 10:00-18:00 - Day
|
/// two-hour cross-fades between them — the <c>time_weights</c> uniform of the time shaders.
|
||||||
// 18:00-22:00 - Evening
|
/// Public so other lit views (the RPG map) follow the same day as the backgrounds.
|
||||||
// 22:00-06:00 - Night
|
/// </summary>
|
||||||
//
|
public static Vector4 CalculateTimeWeights(float hour)
|
||||||
private static Vector4 CalculateTimeWeights(float hour)
|
|
||||||
{
|
{
|
||||||
float night = 0.0f;
|
float night = 0.0f;
|
||||||
float morning = 0.0f;
|
float morning = 0.0f;
|
||||||
|
|||||||
Reference in new issue
Block a user