add moonphases that alter the brightness of night. tweak torch and sky lightmap curves a bit

This commit is contained in:
Xonk
2023-06-19 23:32:39 -04:00
parent 7eb49cd12c
commit cb404760be
10 changed files with 79 additions and 38 deletions

View File

@ -209,14 +209,14 @@ void main() {
NameTags = 0;
// #ifdef ENTITIES
#ifdef ENTITIES
// // try and single out nametag text and then discard nametag background
// // if( dot(gl_Color.rgb, vec3(1.0/3.0)) < 1.0) NameTags = 1;
// // if(gl_Color.a < 1.0) NameTags = 1;
// // if(gl_Color.a >= 0.24 && gl_Color.a <= 0.25 ) gl_Position = vec4(10,10,10,1);
// try and single out nametag text and then discard nametag background
// if( dot(gl_Color.rgb, vec3(1.0/3.0)) < 1.0) NameTags = 1;
// if(gl_Color.a < 1.0) NameTags = 1;
// if(gl_Color.a >= 0.24 && gl_Color.a <= 0.25 ) gl_Position = vec4(10,10,10,1);
// #endif
#endif
/////// ----- EMISSIVE STUFF ----- ///////
@ -239,7 +239,7 @@ void main() {
HELD_ITEM_BRIGHTNESS = 0.0;
#ifdef Hand_Held_lights
if(heldItemId == 100 || heldItemId2 == 100) HELD_ITEM_BRIGHTNESS = 1.0;
if(heldItemId == 100 || heldItemId2 == 100) HELD_ITEM_BRIGHTNESS = 0.9;
#endif