Updated previews (higher resolution panoramas)

This commit is contained in:
RodZill4 2020-01-06 08:18:42 +01:00
parent 784d46b405
commit 597cdcacc9
4 changed files with 4 additions and 1 deletions

View File

@ -14,7 +14,8 @@ void fragment() {
float ms = max(size.x, size.y); float ms = max(size.x, size.y);
vec2 uv = fract(0.5+1.2*(UV-vec2(0.5))*ms/size.yx); vec2 uv = fract(0.5+1.2*(UV-vec2(0.5))*ms/size.yx);
vec2 m2 = min(fract(uv), 1.0-fract(uv)); vec2 m2 = min(fract(uv), 1.0-fract(uv));
COLOR = mix(texture(tex, uv), vec4(0.0, 1.0, 0.0, 1.0), step(min(m2.x, m2.y), 1.0/min(size.x, size.y))); float color = 0.5*(cos(5.0*TIME+100.0*(UV.x+UV.y))+1.0);
COLOR = mix(texture(tex, uv), vec4(vec3(color), 1.0), step(min(m2.x, m2.y), 1.0/min(size.x, size.y)));
}" }"
[sub_resource type="ShaderMaterial" id=2] [sub_resource type="ShaderMaterial" id=2]

View File

@ -8,6 +8,7 @@
[sub_resource type="PanoramaSky" id=1] [sub_resource type="PanoramaSky" id=1]
resource_local_to_scene = true resource_local_to_scene = true
radiance_size = 5
panorama = ExtResource( 2 ) panorama = ExtResource( 2 )
[sub_resource type="Environment" id=2] [sub_resource type="Environment" id=2]
@ -32,6 +33,7 @@ tracks/0/keys = {
[sub_resource type="PanoramaSky" id=4] [sub_resource type="PanoramaSky" id=4]
resource_local_to_scene = true resource_local_to_scene = true
radiance_size = 5
panorama = ExtResource( 4 ) panorama = ExtResource( 4 )
[sub_resource type="Environment" id=5] [sub_resource type="Environment" id=5]