刮刮乐贴图存储优化;麻绳 mesh 优化
This commit is contained in:
parent
c7528dd0cc
commit
ffac8f61ef
@ -246,4 +246,4 @@ textures/vram_compression/import_etc2_astc=true
|
|||||||
[statistics]
|
[statistics]
|
||||||
|
|
||||||
force_include=PackedStringArray()
|
force_include=PackedStringArray()
|
||||||
ignore=PackedStringArray("res://.import/*", "res://.github/*", "res://addons/*", "*.import", "*.gif", "*.mp3", "*.wav", "*.ogg", "*.png")
|
ignore=PackedStringArray("res://.import/*", "res://.github/*", "res://addons/*", "*.import", "*.gif", "*.mp3", "*.wav", "*.ogg", "*.png", "res://android/*")
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
@tool
|
|
||||||
extends TextureRect
|
extends TextureRect
|
||||||
|
|
||||||
signal shaven(progress: float)
|
signal shaven(progress: float)
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
15
scene/ground/script/c02/s09_裂缝麻绳Mesh.tres
Normal file
15
scene/ground/script/c02/s09_裂缝麻绳Mesh.tres
Normal file
File diff suppressed because one or more lines are too long
@ -1,7 +1,7 @@
|
|||||||
@tool
|
@tool
|
||||||
extends MeshInstance2D
|
extends MeshInstance2D
|
||||||
|
|
||||||
@export var pixels_per_subdivision: float = 10.0 # 每个细分包含的像素数
|
@export var pixels_per_subdivision: float = 50.0 # 每个细分包含的像素数
|
||||||
@export_tool_button("重置 mesh") var reset_mesh = create_rope_mesh
|
@export_tool_button("重置 mesh") var reset_mesh = create_rope_mesh
|
||||||
|
|
||||||
|
|
||||||
@ -66,6 +66,9 @@ func create_rope_mesh():
|
|||||||
arrays[Mesh.ARRAY_INDEX] = indices
|
arrays[Mesh.ARRAY_INDEX] = indices
|
||||||
|
|
||||||
array_mesh.add_surface_from_arrays(Mesh.PRIMITIVE_TRIANGLES, arrays)
|
array_mesh.add_surface_from_arrays(Mesh.PRIMITIVE_TRIANGLES, arrays)
|
||||||
|
if mesh and mesh.resource_path:
|
||||||
|
array_mesh.take_over_path(mesh.resource_path)
|
||||||
|
ResourceSaver.save(array_mesh)
|
||||||
mesh = array_mesh
|
mesh = array_mesh
|
||||||
|
|
||||||
print(
|
print(
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user