godot-nishita-sky-with-volu.../nishita_sky.tres
MMqd a86eb99df7 # Moon
* Added a realistically lit moon influenced by the sun, resulting in different moon phases, including Earth blocking moon (new moon phase, and blood moon).
* Moving camera very high on the Y axis, or changing the `Height` parameter brings the moon closer

# Misc
* Added support for moon and ground texture, accurate textures included.
* Moving the camera on the X and Z axis (very far) changes the sky and ground texture position.
* Cloud coverage now affects the brightness of the sky and sun.

# Regression
* Issues with cloud alpha at edges at high sun brightness, currently cutting out the sun from the clouds
2023-06-30 17:38:17 -04:00

65 lines
3.4 KiB
Plaintext

[gd_resource type="ShaderMaterial" load_steps=7 format=3 uid="uid://b45abiagp8tuf"]
[ext_resource type="Shader" path="res://nishita_sky.gdshader" id="1_3qhyv"]
[ext_resource type="Texture2D" uid="uid://bhpaqsnerf2bw" path="res://earth albedo.webp" id="2_8dcp8"]
[ext_resource type="Texture2D" uid="uid://cendachjh3ous" path="res://moon albedo.webp" id="3_2bh7o"]
[ext_resource type="CompressedTexture3D" uid="uid://dbfbysid168mx" path="res://godot-volumetric-cloud-demo textures/perlworlnoise.tga" id="5_q6lkc"]
[ext_resource type="Texture2D" uid="uid://dfkye0uf4i6w1" path="res://godot-volumetric-cloud-demo textures/weather.bmp" id="6_gs20s"]
[ext_resource type="CompressedTexture3D" uid="uid://c4dp6g6gouj2b" path="res://godot-volumetric-cloud-demo textures/worlnoise.bmp" id="7_wkoma"]
[resource]
shader = ExtResource("1_3qhyv")
shader_parameter/precomputed_sun_visible = 1.0
shader_parameter/precomputed_sun_enabled = 1.0
shader_parameter/precomputed_moon_dir = Basis(0.793073, -0.0738336, -0.604635, 0.498952, 0.648125, 0.575309, 0.349402, -0.757946, 0.55085)
shader_parameter/precomputed_sun_dir = Vector3(0.168147, 0.557873, 0.812679)
shader_parameter/precomputed_sun_color = Color(1, 1, 1, 1)
shader_parameter/precomputed_Atmosphere_sun = Color(0.891427, 0.891427, 0.891427, 1)
shader_parameter/precomputed_Atmosphere_ambient = Color(0.262109, 0.50014, 0.759034, 1)
shader_parameter/precomputed_Atmosphere_ground = Color(0.891427, 0.891427, 0.891427, 1)
shader_parameter/precomputed_sun_size = 0.0410152
shader_parameter/precomputed_sun_energy = 1.0
shader_parameter/precomputed_background_intensity = 100000.0
shader_parameter/rayleigh_color = Vector3(0.258929, 0.580357, 1)
shader_parameter/rayleigh = 1.0
shader_parameter/mie_color = Vector3(1, 1, 1)
shader_parameter/mie = 1.0
shader_parameter/mie_eccentricity = 0.76
shader_parameter/atmosphere_samples_max = 32
shader_parameter/atmosphere_samples_min = 12
shader_parameter/atmosphere_samples_horizon_bias = 0.5
shader_parameter/atmosphere_sun_samples = 32
shader_parameter/atmosphere_light_samples = 8
shader_parameter/turbidity = 1.0
shader_parameter/ground_color = Color(1, 1, 1, 1)
shader_parameter/intensity = 10.0
shader_parameter/sun_brightness = 10000.0
shader_parameter/ground_brightness = 1.0
shader_parameter/night_sky_brightness = 100000.0
shader_parameter/ground_rotation = Vector3(-0.79, 0, -5.015)
shader_parameter/moon_eclipse_color = Color(1, 0.1, 0, 1)
shader_parameter/moon_size_mult = 30.0
shader_parameter/Height = 1000.0
shader_parameter/earthRadius = 6.36e+06
shader_parameter/moonRadius = 1.738e+06
shader_parameter/moonDistance = 3.844e+08
shader_parameter/atmosphereRadius = 6.42e+06
shader_parameter/rayleighScaleHeight = 7994.0
shader_parameter/mieScaleHeight = 1200.0
shader_parameter/clouds = true
shader_parameter/cloud_samples_horizon = 54
shader_parameter/cloud_samples_sky = 96
shader_parameter/_density = 0.097
shader_parameter/cloud_coverage = 0.25
shader_parameter/_time_scale = 1.0
shader_parameter/_time_offset = 0.0
shader_parameter/cloud_bottom = 1500.0
shader_parameter/cloud_top = 4000.0
shader_parameter/cloud_brightness = 1.0
shader_parameter/cloud_ambient_brightness = 0.5
shader_parameter/ground_texture = ExtResource("2_8dcp8")
shader_parameter/moon_texture = ExtResource("3_2bh7o")
shader_parameter/worlnoise = ExtResource("7_wkoma")
shader_parameter/perlworlnoise = ExtResource("5_q6lkc")
shader_parameter/weathermap = ExtResource("6_gs20s")