Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (worldTime < 12700 || worldTime > 23250) {
- lightVector = normalize(sunPosition);
- } else {
- lightVector = normalize(moonPosition);
- }
- upVector = normalize(upPosition);
- float timePow = 2.0f;
- float timefract = worldTime;
- float newCelestialAngle = (sunAngle + 0.75F < 0.75 ? sunAngle + 0.25F : sunAngle + 0.75F);
- if(newCelestialAngle > 1.0F) newCelestialAngle -= 1.0F;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement