1
Fork 0
mirror of https://github.com/Steffo99/pineapple-surf.git synced 2024-11-24 08:44:18 +00:00

Make the temple more holy

This commit is contained in:
Steffo 2023-01-09 15:04:16 +01:00
parent 86573b0a2c
commit c5d540231f
Signed by: steffo
GPG key ID: 6965406171929D01
2 changed files with 153 additions and 1 deletions

137
island/PrayerBeam.tres Normal file
View file

@ -0,0 +1,137 @@
[gd_resource type="VisualShader" load_steps=12 format=3 uid="uid://cp6qipvjl5h1v"]
[sub_resource type="VisualShaderNodeFloatOp" id="VisualShaderNodeFloatOp_e1y00"]
[sub_resource type="VisualShaderNodeFloatFunc" id="VisualShaderNodeFloatFunc_7s81m"]
output_port_for_preview = 0
function = 17
[sub_resource type="VisualShaderNodeFloatOp" id="VisualShaderNodeFloatOp_x2brx"]
output_port_for_preview = 0
default_input_values = [0, 0.0, 1, 3.142]
operator = 2
[sub_resource type="VisualShaderNodeFloatFunc" id="VisualShaderNodeFloatFunc_djub3"]
output_port_for_preview = 0
function = 0
[sub_resource type="VisualShaderNodeFloatOp" id="VisualShaderNodeFloatOp_770lq"]
output_port_for_preview = 0
default_input_values = [0, 0.0, 1, 32.0]
operator = 2
[sub_resource type="VisualShaderNodeFloatFunc" id="VisualShaderNodeFloatFunc_dijno"]
output_port_for_preview = 0
function = 17
[sub_resource type="VisualShaderNodeSmoothStep" id="VisualShaderNodeSmoothStep_gtl0n"]
output_port_for_preview = 0
default_input_values = [0, 0.8, 1, 1.0, 2, 0.5]
[sub_resource type="VisualShaderNodeMultiplyAdd" id="VisualShaderNodeMultiplyAdd_fn2e2"]
default_input_values = [0, 0.0, 1, 0.4, 2, 0.1]
[sub_resource type="VisualShaderNodeInput" id="VisualShaderNodeInput_b66y3"]
input_name = "time"
[sub_resource type="VisualShaderNodeInput" id="VisualShaderNodeInput_7wd38"]
output_port_for_preview = 0
input_name = "uv"
[sub_resource type="VisualShaderNodeVectorDecompose" id="VisualShaderNodeVectorDecompose_2c2ak"]
output_port_for_preview = 1
default_input_values = [0, Vector2(0, 0)]
op_type = 0
[resource]
code = "shader_type spatial;
render_mode blend_add, unshaded;
void fragment() {
// Input:2
float n_out2p0 = TIME;
// Input:3
vec2 n_out3p0 = UV;
// VectorDecompose:4
float n_out4p0 = n_out3p0.x;
float n_out4p1 = n_out3p0.y;
// FloatOp:14
float n_in14p1 = 32.00000;
float n_out14p0 = n_out4p1 * n_in14p1;
// FloatFunc:15
float n_out15p0 = fract(n_out14p0);
// FloatOp:10
float n_out10p0 = n_out2p0 + n_out15p0;
// FloatFunc:11
float n_out11p0 = fract(n_out10p0);
// FloatOp:12
float n_in12p1 = 3.14200;
float n_out12p0 = n_out11p0 * n_in12p1;
// FloatFunc:13
float n_out13p0 = sin(n_out12p0);
// SmoothStep:16
float n_in16p0 = 0.80000;
float n_in16p1 = 1.00000;
float n_out16p0 = smoothstep(n_in16p0, n_in16p1, n_out13p0);
// MultiplyAdd:17
float n_in17p1 = 0.40000;
float n_in17p2 = 0.10000;
float n_out17p0 = fma(n_out16p0, n_in17p1, n_in17p2);
// Output:0
ALPHA = n_out17p0;
}
"
graph_offset = Vector2(15.9885, 99.4508)
modes/blend = 1
flags/unshaded = true
nodes/fragment/0/position = Vector2(1157.94, 238.552)
nodes/fragment/2/node = SubResource("VisualShaderNodeInput_b66y3")
nodes/fragment/2/position = Vector2(-489.808, 303.152)
nodes/fragment/3/node = SubResource("VisualShaderNodeInput_7wd38")
nodes/fragment/3/position = Vector2(-1082.22, 380.69)
nodes/fragment/4/node = SubResource("VisualShaderNodeVectorDecompose_2c2ak")
nodes/fragment/4/position = Vector2(-779.218, 382.69)
nodes/fragment/10/node = SubResource("VisualShaderNodeFloatOp_e1y00")
nodes/fragment/10/position = Vector2(-140.048, 330.079)
nodes/fragment/11/node = SubResource("VisualShaderNodeFloatFunc_7s81m")
nodes/fragment/11/position = Vector2(51.0559, 309.319)
nodes/fragment/12/node = SubResource("VisualShaderNodeFloatOp_x2brx")
nodes/fragment/12/position = Vector2(252.606, 296.547)
nodes/fragment/13/node = SubResource("VisualShaderNodeFloatFunc_djub3")
nodes/fragment/13/position = Vector2(465.606, 295.547)
nodes/fragment/14/node = SubResource("VisualShaderNodeFloatOp_770lq")
nodes/fragment/14/position = Vector2(-567.153, 394.715)
nodes/fragment/15/node = SubResource("VisualShaderNodeFloatFunc_dijno")
nodes/fragment/15/position = Vector2(-365.353, 405.715)
nodes/fragment/16/node = SubResource("VisualShaderNodeSmoothStep_gtl0n")
nodes/fragment/16/position = Vector2(690.342, 223.169)
nodes/fragment/17/node = SubResource("VisualShaderNodeMultiplyAdd_fn2e2")
nodes/fragment/17/position = Vector2(923.023, 307.369)
nodes/fragment/connections = PackedInt32Array(3, 0, 4, 0, 2, 0, 10, 0, 10, 0, 11, 0, 11, 0, 12, 0, 12, 0, 13, 0, 4, 1, 14, 0, 14, 0, 15, 0, 15, 0, 10, 1, 13, 0, 16, 2, 16, 0, 17, 0, 17, 0, 0, 1)

View file

@ -1,12 +1,14 @@
[gd_scene load_steps=8 format=3 uid="uid://dp3n3j0r2ufhw"] [gd_scene load_steps=11 format=3 uid="uid://dp3n3j0r2ufhw"]
[ext_resource type="PackedScene" uid="uid://c7dmda5c5ju28" path="res://island/TempleMesh.tscn" id="1_e3qkq"] [ext_resource type="PackedScene" uid="uid://c7dmda5c5ju28" path="res://island/TempleMesh.tscn" id="1_e3qkq"]
[ext_resource type="Script" path="res://island/Temple.gd" id="1_ij5av"] [ext_resource type="Script" path="res://island/Temple.gd" id="1_ij5av"]
[ext_resource type="Texture2D" uid="uid://ceucx3sfu3345" path="res://assets/island_model/texture_3.png" id="2_mx23r"] [ext_resource type="Texture2D" uid="uid://ceucx3sfu3345" path="res://assets/island_model/texture_3.png" id="2_mx23r"]
[ext_resource type="AudioStream" uid="uid://dje4pc3vdya0d" path="res://assets/sine.wav" id="4_wahrh"] [ext_resource type="AudioStream" uid="uid://dje4pc3vdya0d" path="res://assets/sine.wav" id="4_wahrh"]
[ext_resource type="Shader" uid="uid://cp6qipvjl5h1v" path="res://island/PrayerBeam.tres" id="5_kuhb6"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_c2cin"] [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_c2cin"]
resource_name = "material3" resource_name = "material3"
render_priority = -1
transparency = 1 transparency = 1
shading_mode = 0 shading_mode = 0
albedo_texture = ExtResource("2_mx23r") albedo_texture = ExtResource("2_mx23r")
@ -31,6 +33,14 @@ _surfaces = [{
[sub_resource type="BoxShape3D" id="BoxShape3D_2m5mr"] [sub_resource type="BoxShape3D" id="BoxShape3D_2m5mr"]
size = Vector3(2, 2, 2) size = Vector3(2, 2, 2)
[sub_resource type="ShaderMaterial" id="ShaderMaterial_yfbad"]
render_priority = 0
shader = ExtResource("5_kuhb6")
[sub_resource type="BoxMesh" id="BoxMesh_1a73e"]
material = SubResource("ShaderMaterial_yfbad")
size = Vector3(1, 16, 1)
[node name="Temple" type="Node3D"] [node name="Temple" type="Node3D"]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 0) transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 0)
script = ExtResource("1_ij5av") script = ExtResource("1_ij5av")
@ -55,3 +65,8 @@ monitorable = false
[node name="CollisionShape3D" type="CollisionShape3D" parent="PrayerArea"] [node name="CollisionShape3D" type="CollisionShape3D" parent="PrayerArea"]
shape = SubResource("BoxShape3D_2m5mr") shape = SubResource("BoxShape3D_2m5mr")
[node name="PrayerBeam" type="MeshInstance3D" parent="PrayerArea"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 7, 0)
mesh = SubResource("BoxMesh_1a73e")
skeleton = NodePath("../..")