1
Fork 0
mirror of https://github.com/Steffo99/pineapple-surf.git synced 2024-11-21 23:34:21 +00:00

Create a billboard pillar to display in water

This commit is contained in:
Steffo 2023-01-08 00:37:10 +01:00
parent edf9509a82
commit feaeb57984
Signed by: steffo
GPG key ID: 6965406171929D01
8 changed files with 111 additions and 1 deletions

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,9 @@
newmtl material1
Ka 1.000000 1.000000 1.000000
Kd 1.000000 1.000000 1.000000
Ks 0.000000 0.000000 0.000000
Tr 0.000000
illum 0
Ns 0.000000
map_Kd texture_1.png
map_d texture_1.png

BIN
assets/island_model/pillar.obj (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,21 @@
[remap]
importer="wavefront_obj"
importer_version=1
type="Mesh"
uid="uid://gcespnplwchl"
path="res://.godot/imported/pillar.obj-24a43860f27311daa0d331313a46a0db.mesh"
[deps]
files=["res://.godot/imported/pillar.obj-24a43860f27311daa0d331313a46a0db.mesh"]
source_file="res://assets/island_model/pillar.obj"
dest_files=["res://.godot/imported/pillar.obj-24a43860f27311daa0d331313a46a0db.mesh", "res://.godot/imported/pillar.obj-24a43860f27311daa0d331313a46a0db.mesh"]
[params]
generate_tangents=true
scale_mesh=Vector3(1, 1, 1)
offset_mesh=Vector3(0, 0, 0)
optimize_mesh=true

BIN
assets/island_model/texture_1.png (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cdpn34mdaq545"
path="res://.godot/imported/texture_1.png-9fbd3af4843d9622d58b51ee93c19f7f.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/island_model/texture_1.png"
dest_files=["res://.godot/imported/texture_1.png-9fbd3af4843d9622d58b51ee93c19f7f.ctex"]
[params]
compress/mode=2
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/bptc_ldr=0
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=14 format=3 uid="uid://bg88gc1w1gw5m"]
[gd_scene load_steps=15 format=3 uid="uid://bg88gc1w1gw5m"]
[ext_resource type="Shader" path="res://island/Sea.gdshader" id="1_agjfy"]
[ext_resource type="Texture2D" uid="uid://bdoifsf6k0qb8" path="res://assets/water_tile.png" id="1_w6ara"]
@ -7,6 +7,7 @@
[ext_resource type="PackedScene" uid="uid://tahdk48hqxis" path="res://island/HillMesh.tscn" id="4_5ll24"]
[ext_resource type="PackedScene" uid="uid://cxa5irr1atgke" path="res://island/PyramidSmallMesh.tscn" id="5_uf8hd"]
[ext_resource type="PackedScene" uid="uid://bknwefv5ycc3u" path="res://island/PyramidSmolMesh.tscn" id="6_klmt8"]
[ext_resource type="PackedScene" uid="uid://boxtb3trgcy8c" path="res://island/PillarMesh.tscn" id="7_grmwj"]
[ext_resource type="PackedScene" uid="uid://cf35yl04qtru3" path="res://island/CropTile.tscn" id="8_4ooup"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_3uyyi"]
@ -63,6 +64,15 @@ skeleton = NodePath("../../..")
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -29, 0, 44)
skeleton = NodePath("../../..")
[node name="PillarMesh" parent="World" instance=ExtResource("7_grmwj")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -17, 0, 9)
[node name="PillarMesh2" parent="World" instance=ExtResource("7_grmwj")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -16, 0, 7)
[node name="PillarMesh3" parent="World" instance=ExtResource("7_grmwj")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -17, 0, 5)
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_302o8")

29
island/PillarMesh.tscn Normal file
View file

@ -0,0 +1,29 @@
[gd_scene load_steps=4 format=3 uid="uid://boxtb3trgcy8c"]
[ext_resource type="Texture2D" uid="uid://cdpn34mdaq545" path="res://assets/island_model/texture_1.png" id="1_ovyt2"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_1615l"]
resource_name = "material1"
transparency = 1
shading_mode = 0
albedo_texture = ExtResource("1_ovyt2")
texture_filter = 0
billboard_mode = 2
[sub_resource type="ArrayMesh" id="ArrayMesh_fup4l"]
_surfaces = [{
"aabb": AABB(-0.5, 0, 1.77636e-15, 1.00001, 1.00001, 1e-05),
"attribute_data": PackedByteArray(171, 170, 42, 63, 110, 219, 54, 63, 85, 85, 21, 63, 146, 36, 73, 63, 85, 85, 21, 63, 110, 219, 54, 63, 171, 170, 42, 63, 146, 36, 73, 63, 171, 170, 42, 63, 110, 219, 54, 63, 85, 85, 21, 63, 146, 36, 73, 63, 85, 85, 21, 63, 110, 219, 54, 63, 171, 170, 42, 63, 146, 36, 73, 63),
"format": 4119,
"index_count": 12,
"index_data": PackedByteArray(0, 0, 1, 0, 2, 0, 3, 0, 1, 0, 0, 0, 4, 0, 5, 0, 6, 0, 7, 0, 5, 0, 4, 0),
"material": SubResource("StandardMaterial3D_1615l"),
"name": "material1",
"primitive": 3,
"vertex_count": 8,
"vertex_data": PackedByteArray(0, 0, 0, 63, 0, 0, 128, 63, 0, 0, 0, 39, 255, 127, 255, 127, 255, 255, 255, 191, 0, 0, 0, 191, 0, 0, 0, 0, 0, 0, 0, 39, 255, 127, 255, 127, 255, 255, 255, 191, 0, 0, 0, 191, 0, 0, 128, 63, 0, 0, 0, 39, 255, 127, 255, 127, 255, 255, 255, 191, 0, 0, 0, 63, 0, 0, 0, 0, 0, 0, 0, 39, 255, 127, 255, 127, 255, 255, 255, 191, 0, 0, 0, 191, 0, 0, 128, 63, 0, 0, 0, 39, 255, 255, 255, 255, 0, 0, 255, 191, 0, 0, 0, 63, 0, 0, 0, 0, 0, 0, 0, 39, 255, 255, 255, 255, 0, 0, 255, 191, 0, 0, 0, 63, 0, 0, 128, 63, 0, 0, 0, 39, 255, 255, 255, 255, 0, 0, 255, 191, 0, 0, 0, 191, 0, 0, 0, 0, 0, 0, 0, 39, 255, 255, 255, 255, 0, 0, 255, 191)
}]
[node name="PillarMesh" type="MeshInstance3D"]
mesh = SubResource("ArrayMesh_fup4l")
skeleton = NodePath("../..")