mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-20 09:29:44 +00:00
test
This commit is contained in:
parent
2f87bbf608
commit
c0c60430d6
4 changed files with 5 additions and 5 deletions
|
|
@ -8,8 +8,8 @@
|
|||
#define CURVATURE_FACTOR 0.002
|
||||
|
||||
// lighting
|
||||
#define SKY_LIGHT_MUL 2.5
|
||||
#define SKY_LIGHT_TINT (vec3(1.0, 0.75, 0.6) * 2.0)
|
||||
#define SKY_LIGHT_MUL 4.0
|
||||
#define SKY_LIGHT_TINT (vec3(1.0, 0.2, 0.2) * 2.0)
|
||||
|
||||
// fog
|
||||
#define FOG_POS_SCALE vec3(1.0, 0.2, 1.0)
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ float calc_shadow(
|
|||
}
|
||||
shadow /= 9.0;
|
||||
|
||||
shadow *= max(0.0, -dot(realnormal, u_sunDir));
|
||||
shadow *= max(0.0, sqrt(-dot(realnormal, u_sunDir)));
|
||||
return shadow;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
#include <constants>
|
||||
|
||||
vec3 pick_sky_color(samplerCube cubemap, float dayTime, vec3 minSkyLight) {
|
||||
float elevation = sin(dayTime * PI2) * 0.2;
|
||||
float elevation = -sin(dayTime * PI2) * 0.1;
|
||||
vec3 skyLightColor = texture(cubemap, vec3(0.0f, elevation, -0.4f)).rgb;
|
||||
skyLightColor *= SKY_LIGHT_TINT;
|
||||
skyLightColor = min(vec3(1.0f), skyLightColor * SKY_LIGHT_MUL);
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ SOFTWARE.
|
|||
#define ABSORPTION_BETA vec3(2.04e-5, 4.97e-5, 1.95e-6) /* what color gets absorbed by the atmosphere (Due to things like ozone) */
|
||||
#define G 0.9 /* mie scattering direction, or how big the blob around the sun is */
|
||||
// and the heights (how far to go up before the scattering has no effect)
|
||||
#define HEIGHT_RAY 8e3 /* rayleigh height */
|
||||
#define HEIGHT_RAY 12e3 /* rayleigh height */
|
||||
#define HEIGHT_MIE 1.2e3 /* and mie */
|
||||
#define HEIGHT_ABSORPTION 30e3 /* at what height the absorption is at it's maximum */
|
||||
#define ABSORPTION_FALLOFF 4e3 /* how much the absorption decreases the further away it gets from the maximum height */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue