mirror of
https://github.com/Steffo99/pineapple-surf.git
synced 2024-11-25 09:14:18 +00:00
Fix crop material index
This commit is contained in:
parent
592a72b11b
commit
49eea77cdb
5 changed files with 17 additions and 53 deletions
File diff suppressed because one or more lines are too long
BIN
assets/island_model/texture_1.png
(Stored with Git LFS)
BIN
assets/island_model/texture_1.png
(Stored with Git LFS)
Binary file not shown.
|
@ -1,36 +0,0 @@
|
||||||
[remap]
|
|
||||||
|
|
||||||
importer="texture"
|
|
||||||
type="CompressedTexture2D"
|
|
||||||
uid="uid://bwbbfj7eom0vf"
|
|
||||||
path.s3tc="res://.godot/imported/texture_1.png-9fbd3af4843d9622d58b51ee93c19f7f.s3tc.ctex"
|
|
||||||
path.etc2="res://.godot/imported/texture_1.png-9fbd3af4843d9622d58b51ee93c19f7f.etc2.ctex"
|
|
||||||
metadata={
|
|
||||||
"imported_formats": ["s3tc", "etc2"],
|
|
||||||
"vram_texture": true
|
|
||||||
}
|
|
||||||
|
|
||||||
[deps]
|
|
||||||
|
|
||||||
source_file="res://assets/island_model/texture_1.png"
|
|
||||||
dest_files=["res://.godot/imported/texture_1.png-9fbd3af4843d9622d58b51ee93c19f7f.s3tc.ctex", "res://.godot/imported/texture_1.png-9fbd3af4843d9622d58b51ee93c19f7f.etc2.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
|
|
12
island/CropMaterial.tres
Normal file
12
island/CropMaterial.tres
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
[gd_resource type="StandardMaterial3D" load_steps=2 format=3 uid="uid://w0ipvdnh4l8s"]
|
||||||
|
|
||||||
|
[ext_resource type="Texture2D" uid="uid://bwbbfj7eom0vf" path="res://assets/island_model/texture_1.png" id="1_2p6y5"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
resource_name = "material1"
|
||||||
|
transparency = 2
|
||||||
|
alpha_scissor_threshold = 0.5
|
||||||
|
alpha_antialiasing_mode = 0
|
||||||
|
albedo_texture = ExtResource("1_2p6y5")
|
||||||
|
texture_filter = 0
|
||||||
|
texture_repeat = false
|
|
@ -1,20 +1,11 @@
|
||||||
[gd_scene load_steps=6 format=3 uid="uid://cf35yl04qtru3"]
|
[gd_scene load_steps=5 format=3 uid="uid://cf35yl04qtru3"]
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://island/CropTile.gd" id="1_7lls2"]
|
[ext_resource type="Script" path="res://island/CropTile.gd" id="1_7lls2"]
|
||||||
[ext_resource type="Texture2D" uid="uid://bwbbfj7eom0vf" path="res://assets/island_model/texture_1.png" id="1_fn720"]
|
[ext_resource type="Material" uid="uid://w0ipvdnh4l8s" path="res://island/CropMaterial.tres" id="2_1oajr"]
|
||||||
|
|
||||||
[sub_resource type="BoxShape3D" id="BoxShape3D_6ja5h"]
|
[sub_resource type="BoxShape3D" id="BoxShape3D_6ja5h"]
|
||||||
size = Vector3(1, 0.1, 1)
|
size = Vector3(1, 0.1, 1)
|
||||||
|
|
||||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ed1p1"]
|
|
||||||
resource_name = "material1"
|
|
||||||
transparency = 2
|
|
||||||
alpha_scissor_threshold = 0.5
|
|
||||||
alpha_antialiasing_mode = 0
|
|
||||||
albedo_texture = ExtResource("1_fn720")
|
|
||||||
texture_filter = 0
|
|
||||||
texture_repeat = false
|
|
||||||
|
|
||||||
[sub_resource type="ArrayMesh" id="ArrayMesh_28cd1"]
|
[sub_resource type="ArrayMesh" id="ArrayMesh_28cd1"]
|
||||||
_surfaces = [{
|
_surfaces = [{
|
||||||
"aabb": AABB(-0.5, 0, -0.5, 1.00001, 1.00001, 1),
|
"aabb": AABB(-0.5, 0, -0.5, 1.00001, 1.00001, 1),
|
||||||
|
@ -22,8 +13,8 @@ _surfaces = [{
|
||||||
"format": 4119,
|
"format": 4119,
|
||||||
"index_count": 24,
|
"index_count": 24,
|
||||||
"index_data": PackedByteArray(0, 0, 1, 0, 2, 0, 3, 0, 1, 0, 0, 0, 4, 0, 5, 0, 6, 0, 7, 0, 4, 0, 6, 0, 8, 0, 9, 0, 10, 0, 11, 0, 8, 0, 10, 0, 12, 0, 13, 0, 14, 0, 15, 0, 12, 0, 14, 0),
|
"index_data": PackedByteArray(0, 0, 1, 0, 2, 0, 3, 0, 1, 0, 0, 0, 4, 0, 5, 0, 6, 0, 7, 0, 4, 0, 6, 0, 8, 0, 9, 0, 10, 0, 11, 0, 8, 0, 10, 0, 12, 0, 13, 0, 14, 0, 15, 0, 12, 0, 14, 0),
|
||||||
"material": SubResource("StandardMaterial3D_ed1p1"),
|
"material": ExtResource("2_1oajr"),
|
||||||
"name": "material1",
|
"name": "material0",
|
||||||
"primitive": 3,
|
"primitive": 3,
|
||||||
"vertex_count": 16,
|
"vertex_count": 16,
|
||||||
"vertex_data": PackedByteArray(0, 0, 0, 63, 0, 0, 128, 63, 0, 0, 0, 191, 255, 191, 255, 127, 255, 255, 255, 223, 0, 0, 0, 191, 0, 0, 0, 0, 0, 0, 0, 63, 255, 191, 255, 127, 255, 255, 255, 223, 0, 0, 0, 191, 0, 0, 128, 63, 0, 0, 0, 63, 255, 191, 255, 127, 255, 255, 255, 223, 0, 0, 0, 63, 0, 0, 0, 0, 0, 0, 0, 191, 255, 191, 255, 127, 255, 255, 255, 223, 0, 0, 0, 191, 0, 0, 128, 63, 0, 0, 0, 191, 255, 63, 255, 127, 0, 0, 255, 31, 0, 0, 0, 63, 0, 0, 128, 63, 0, 0, 0, 63, 255, 63, 255, 127, 0, 0, 255, 31, 0, 0, 0, 63, 0, 0, 0, 0, 0, 0, 0, 63, 255, 63, 255, 127, 0, 0, 255, 31, 0, 0, 0, 191, 0, 0, 0, 0, 0, 0, 0, 191, 255, 63, 255, 127, 0, 0, 255, 31, 0, 0, 0, 63, 0, 0, 128, 63, 0, 0, 0, 191, 0, 0, 255, 191, 255, 255, 255, 31, 0, 0, 0, 191, 0, 0, 128, 63, 0, 0, 0, 63, 0, 0, 255, 191, 255, 255, 255, 31, 0, 0, 0, 191, 0, 0, 0, 0, 0, 0, 0, 63, 0, 0, 255, 191, 255, 255, 255, 31, 0, 0, 0, 63, 0, 0, 0, 0, 0, 0, 0, 191, 0, 0, 255, 191, 255, 255, 255, 31, 0, 0, 0, 63, 0, 0, 128, 63, 0, 0, 0, 63, 255, 255, 255, 191, 255, 191, 255, 63, 0, 0, 0, 191, 0, 0, 128, 63, 0, 0, 0, 191, 255, 255, 255, 191, 255, 191, 255, 63, 0, 0, 0, 191, 0, 0, 0, 0, 0, 0, 0, 191, 255, 255, 255, 191, 255, 191, 255, 63, 0, 0, 0, 63, 0, 0, 0, 0, 0, 0, 0, 63, 255, 255, 255, 191, 255, 191, 255, 63)
|
"vertex_data": PackedByteArray(0, 0, 0, 63, 0, 0, 128, 63, 0, 0, 0, 191, 255, 191, 255, 127, 255, 255, 255, 223, 0, 0, 0, 191, 0, 0, 0, 0, 0, 0, 0, 63, 255, 191, 255, 127, 255, 255, 255, 223, 0, 0, 0, 191, 0, 0, 128, 63, 0, 0, 0, 63, 255, 191, 255, 127, 255, 255, 255, 223, 0, 0, 0, 63, 0, 0, 0, 0, 0, 0, 0, 191, 255, 191, 255, 127, 255, 255, 255, 223, 0, 0, 0, 191, 0, 0, 128, 63, 0, 0, 0, 191, 255, 63, 255, 127, 0, 0, 255, 31, 0, 0, 0, 63, 0, 0, 128, 63, 0, 0, 0, 63, 255, 63, 255, 127, 0, 0, 255, 31, 0, 0, 0, 63, 0, 0, 0, 0, 0, 0, 0, 63, 255, 63, 255, 127, 0, 0, 255, 31, 0, 0, 0, 191, 0, 0, 0, 0, 0, 0, 0, 191, 255, 63, 255, 127, 0, 0, 255, 31, 0, 0, 0, 63, 0, 0, 128, 63, 0, 0, 0, 191, 0, 0, 255, 191, 255, 255, 255, 31, 0, 0, 0, 191, 0, 0, 128, 63, 0, 0, 0, 63, 0, 0, 255, 191, 255, 255, 255, 31, 0, 0, 0, 191, 0, 0, 0, 0, 0, 0, 0, 63, 0, 0, 255, 191, 255, 255, 255, 31, 0, 0, 0, 63, 0, 0, 0, 0, 0, 0, 0, 191, 0, 0, 255, 191, 255, 255, 255, 31, 0, 0, 0, 63, 0, 0, 128, 63, 0, 0, 0, 63, 255, 255, 255, 191, 255, 191, 255, 63, 0, 0, 0, 191, 0, 0, 128, 63, 0, 0, 0, 191, 255, 255, 255, 191, 255, 191, 255, 63, 0, 0, 0, 191, 0, 0, 0, 0, 0, 0, 0, 191, 255, 255, 255, 191, 255, 191, 255, 63, 0, 0, 0, 63, 0, 0, 0, 0, 0, 0, 0, 63, 255, 255, 255, 191, 255, 191, 255, 63)
|
||||||
|
|
Loading…
Reference in a new issue