File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -935,9 +935,9 @@ void main()
935935
936936(defn setup-fog-uniforms
937937 [program width height]
938- (let [rotation (mulm (rotation-matrix-3d-y (to-radians 30 .0 )) (rotation-matrix-3d-x (to-radians -20.0 )))
938+ (let [rotation (mulm (rotation-matrix-3d-y (to-radians 40 .0 )) (rotation-matrix-3d-x (to-radians -20.0 )))
939939 focal-length (/ (* 0.5 width) (tan (to-radians 30.0 )))
940- light (normalize (vec3 4 1 10 ))]
940+ light (normalize (vec3 6 1 10 ))]
941941 (GL20/glUseProgram program)
942942 (GL20/glUniform2f (GL20/glGetUniformLocation program " resolution" ) width height)
943943 (GL20/glUniform3f (GL20/glGetUniformLocation program " light" ) (light 0 ) (light 1 ) (light 2 ))
@@ -1074,7 +1074,7 @@ float remap_noise(vec3 idx)
10741074}" ))
10751075
10761076
1077- (def cloud-strength 5.0 )
1077+ (def cloud-strength 6.5 )
10781078
10791079
10801080(bufimg/tensor->image (rgba-array->bufimg (render-noise 640 480 constant-scatter no-shadow (cloud-transfer " remap_noise" 0.01 ) remap-clamp (remap-noise " noise" 0.45 0.9 cloud-strength) noise-shader) 640 480 ))
@@ -1085,6 +1085,8 @@ float remap_noise(vec3 idx)
10851085(bufimg/tensor->image (rgba-array->bufimg (render-noise 640 480 constant-scatter no-shadow (cloud-transfer " remap_noise" 0.01 ) remap-clamp (remap-noise " octaves" 0.45 0.9 cloud-strength) (noise-octaves (octaves 4 0.5 )) noise-shader) 640 480 ))
10861086
10871087
1088+ ; ; # Mie scattering
1089+
10881090(def mie-scatter
10891091 (template/fn [g]
10901092" #version 450 core
@@ -1102,7 +1104,6 @@ float in_scatter(vec3 point, vec3 direction)
11021104}" ))
11031105
11041106
1105- ; ; # Mie scattering
11061107(def mie-probe
11071108 (template/fn [mu]
11081109" #version 450 core
You can’t perform that action at this time.
0 commit comments