skybox: added moon and stars
This commit is contained in:
@@ -39,6 +39,7 @@ void main(){
|
||||
skyLightColor.g *= 0.9;
|
||||
skyLightColor.b *= 0.8;
|
||||
skyLightColor = min(vec3(1.0), skyLightColor*SKY_LIGHT_MUL);
|
||||
skyLightColor = max(vec3(0.1, 0.11, 0.14), skyLightColor);
|
||||
|
||||
a_color.rgb = max(a_color.rgb, skyLightColor.rgb*decomp_light.a);
|
||||
a_distance = length(u_view * u_model * vec4(pos3d.x, pos3d.y*0.2, pos3d.z, 0.0));
|
||||
|
||||
@@ -277,7 +277,7 @@ void main() {
|
||||
MIE_BETA, // Mie scattering coefficient
|
||||
ABSORPTION_BETA, // Absorbtion coefficient
|
||||
AMBIENT_BETA, // ambient scattering, turned off for now. This causes the air to glow a bit when no light reaches it
|
||||
G*fog, // Mie preferred scattering direction
|
||||
G*fog*0.7, // Mie preferred scattering direction
|
||||
HEIGHT_RAY, // Rayleigh scale height
|
||||
HEIGHT_MIE*u_mie*u_mie, // Mie scale height
|
||||
HEIGHT_ABSORPTION, // the height at which the most absorption happens
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 38 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 22 KiB |
Reference in New Issue
Block a user