mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
16 lines
365 B
Plaintext
16 lines
365 B
Plaintext
/*
|
|
* Author: commy2, idea by Falke
|
|
* Returns a brightness value depending on the sun and moon state. Ranges from 0 to 1 (dark ... bright).
|
|
*
|
|
* Arguments:
|
|
* None
|
|
*
|
|
* Return Value:
|
|
* Ambient brightness <NUMBER>
|
|
*
|
|
* Public: Yes
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
(sunOrMoon * sunOrMoon * (1 - overcast * 0.25) + (moonIntensity / 5) * (1 - overcast)) min 1
|