public Vector3 GetSunDirection(AtmosphereSun sun) { return((sun.transform.position - Origin).normalized); }
private Matrix4x4 GetSunWorldToLocalRotation(AtmosphereSun sun, Vector3 direction) { return(Matrix4x4.TRS(Vector3.zero + sun.Origin, Quaternion.FromToRotation(direction, sun.Z_AXIS), Vector3.one)); }