I like this coloring.

This commit is contained in:
Joshua Yanovski 2020-04-25 23:54:43 +02:00
parent bc2560ea90
commit 8116b21c2e
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ const float PI = 3.141592;
const vec3 SKY_DAY_TOP = vec3(0.1, 0.5, 0.9); const vec3 SKY_DAY_TOP = vec3(0.1, 0.5, 0.9);
const vec3 SKY_DAY_MID = vec3(0.02, 0.28, 0.8); const vec3 SKY_DAY_MID = vec3(0.02, 0.28, 0.8);
const vec3 SKY_DAY_BOT = vec3(0.1, 0.2, 0.3); const vec3 SKY_DAY_BOT = vec3(0.1, 0.2, 0.3);
const vec3 DAY_LIGHT = vec3(1.2, 1.0, 1.0) * 3.0; const vec3 DAY_LIGHT = vec3(1.2, 1.0, 1.0) * 1.8;
const vec3 SUN_HALO_DAY = vec3(0.35, 0.35, 0.0); const vec3 SUN_HALO_DAY = vec3(0.35, 0.35, 0.0);
const vec3 SKY_DUSK_TOP = vec3(0.06, 0.1, 0.20); const vec3 SKY_DUSK_TOP = vec3(0.06, 0.1, 0.20);
@ -420,7 +420,7 @@ vec3 illuminate(/*vec3 max_light, */vec3 emitted, vec3 reflected) {
// vec3 c = pow(col_adjusted, vec3(s)) * T; // vec3 c = pow(col_adjusted, vec3(s)) * T;
// vec3 c = col_adjusted * T; // vec3 c = col_adjusted * T;
// vec3 c = sqrt(col_adjusted) * T; // vec3 c = sqrt(col_adjusted) * T;
vec3 c = col_adjusted * col_adjusted * T; vec3 c = /*col_adjusted * */col_adjusted * T;
return c; return c;
// float sum_col = color.r + color.g + color.b; // float sum_col = color.r + color.g + color.b;

View File

@ -27,7 +27,7 @@ void main() {
//f_pos.z -= 100.0 * pow(1.0 + 0.01 / view_distance.x, -pow(distance(focus_pos.xy, f_pos.xy), 2.0)); //f_pos.z -= 100.0 * pow(1.0 + 0.01 / view_distance.x, -pow(distance(focus_pos.xy, f_pos.xy), 2.0));
// f_pos.z = mix(-f_pos.z, f_pos.z, view_distance.x <= distance(focus_pos.xy, f_pos.xy) + 32.0); // f_pos.z = mix(-f_pos.z, f_pos.z, view_distance.x <= distance(focus_pos.xy, f_pos.xy) + 32.0);
f_pos.z -= max(view_distance.x - distance(focus_pos.xy, f_pos.xy), 0.0); f_pos.z -= max(view_distance.x - distance(focus_pos.xy, f_pos.xy), 0.0) * 65536;
// f_light = 1.0; // f_light = 1.0;