terrain3d test
21
addons/terrain_3d/LICENSE.txt
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2023 Cory Petkovsek, Roope Palmroos, and Contributors.
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
56
addons/terrain_3d/README.md
Normal file
|
|
@ -0,0 +1,56 @@
|
||||||
|
<img src="doc/docs/images/terrain3d.png">
|
||||||
|
|
||||||
|
# Terrain3D
|
||||||
|
A high performance, editable terrain system for Godot 4.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
* Written in C++ as a GDExtension addon, which works with official engine builds
|
||||||
|
* Can be accessed by GDScript, C#, and any language Godot supports
|
||||||
|
* Geometric Clipmap Mesh Terrain, as used in The Witcher 3. See [System Architecture](https://terrain3d.readthedocs.io/en/stable/docs/system_architecture.html)
|
||||||
|
* Up to 16k x 16k in 1k regions (imagine multiple islands without paying for 16k^2 vram)
|
||||||
|
* Up to 32 textures
|
||||||
|
* Up to 10 levels of detail
|
||||||
|
* Foliage instancing
|
||||||
|
* Sculpting, holes, texture painting, texture detiling, painting colors and wetness
|
||||||
|
* Imports heightmaps from [HTerrain](https://github.com/Zylann/godot_heightmap_plugin/), WorldMachine, Unity, Unreal and any tool that can export a heightmap (raw/r16/exr/+). See [importing data](https://terrain3d.readthedocs.io/en/stable/docs/import_export.html)
|
||||||
|
|
||||||
|
See [Project Status](https://terrain3d.readthedocs.io/en/stable/docs/project_status.html) for details.
|
||||||
|
|
||||||
|
## Getting Started
|
||||||
|
|
||||||
|
1. Read the [Installation & Upgrades](https://terrain3d.readthedocs.io/en/stable/docs/installation.html) instructions.
|
||||||
|
|
||||||
|
2. For support, read [Getting Help](https://terrain3d.readthedocs.io/en/stable/docs/getting_help.html) or join our [Discord server](https://tokisan.com/discord).
|
||||||
|
|
||||||
|
3. Watch the tutorial videos:
|
||||||
|
|
||||||
|
**Installation, Setup, Basic Usage**
|
||||||
|
|
||||||
|
[](https://youtu.be/oV8c9alXVwU)
|
||||||
|
|
||||||
|
**Texture Painting, Holes, Navigation, Advanced Usage**
|
||||||
|
|
||||||
|
[](https://youtu.be/YtiAI2F6Xkk)
|
||||||
|
|
||||||
|
|
||||||
|
## Credit
|
||||||
|
Developed for the Godot community by:
|
||||||
|
|
||||||
|
|||
|
||||||
|
|--|--|
|
||||||
|
| **Cory Petkovsek, Tokisan Games** | [<img src="https://github.com/dmhendricks/signature-social-icons/blob/master/icons/round-flat-filled/35px/twitter.png?raw=true" width="24"/>](https://twitter.com/TokisanGames) [<img src="https://github.com/dmhendricks/signature-social-icons/blob/master/icons/round-flat-filled/35px/github.png?raw=true" width="24"/>](https://github.com/TokisanGames) [<img src="https://github.com/dmhendricks/signature-social-icons/blob/master/icons/round-flat-filled/35px/www.png?raw=true" width="24"/>](https://tokisan.com/) [<img src="https://github.com/dmhendricks/signature-social-icons/blob/master/icons/round-flat-filled/35px/discord.png?raw=true" width="24"/>](https://tokisan.com/discord) [<img src="https://github.com/dmhendricks/signature-social-icons/blob/master/icons/round-flat-filled/35px/youtube.png?raw=true" width="24"/>](https://www.youtube.com/@TokisanGames)|
|
||||||
|
| **Roope Palmroos, Outobugi Games** | [<img src="https://github.com/dmhendricks/signature-social-icons/blob/master/icons/round-flat-filled/35px/twitter.png?raw=true" width="24"/>](https://twitter.com/outobugi) [<img src="https://github.com/dmhendricks/signature-social-icons/blob/master/icons/round-flat-filled/35px/github.png?raw=true" width="24"/>](https://github.com/outobugi) [<img src="https://github.com/dmhendricks/signature-social-icons/blob/master/icons/round-flat-filled/35px/www.png?raw=true" width="24"/>](https://outobugi.com/) [<img src="https://github.com/dmhendricks/signature-social-icons/blob/master/icons/round-flat-filled/35px/youtube.png?raw=true" width="24"/>](https://www.youtube.com/@outobugi)|
|
||||||
|
|
||||||
|
And other contributors displayed on the right of the github page and in [AUTHORS.md](https://github.com/TokisanGames/Terrain3D/blob/main/AUTHORS.md).
|
||||||
|
|
||||||
|
Geometry clipmap mesh code created by [Mike J. Savage](https://mikejsavage.co.uk/blog/geometry-clipmaps.html). Blog and repository code released under the MIT license per email communication with Mike.
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
Please see [CONTRIBUTING.md](https://github.com/TokisanGames/Terrain3D/blob/main/CONTRIBUTING.md) if you would like to help make Terrain3D the best terrain system for Godot.
|
||||||
|
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
This addon has been released under the [MIT License](https://github.com/TokisanGames/Terrain3D/blob/main/LICENSE.txt).
|
||||||
|
|
||||||
BIN
addons/terrain_3d/bin/libterrain.android.debug.arm32.so
Normal file
BIN
addons/terrain_3d/bin/libterrain.android.debug.arm64.so
Normal file
BIN
addons/terrain_3d/bin/libterrain.android.release.arm32.so
Normal file
BIN
addons/terrain_3d/bin/libterrain.android.release.arm64.so
Normal file
BIN
addons/terrain_3d/bin/libterrain.ios.debug.universal.dylib
Normal file
BIN
addons/terrain_3d/bin/libterrain.ios.release.universal.dylib
Normal file
BIN
addons/terrain_3d/bin/libterrain.linux.debug.x86_64.so
Normal file
BIN
addons/terrain_3d/bin/libterrain.linux.release.x86_64.so
Normal file
BIN
addons/terrain_3d/bin/libterrain.windows.debug.x86_64.dll
Normal file
BIN
addons/terrain_3d/bin/libterrain.windows.release.x86_64.dll
Normal file
0
addons/terrain_3d/brushes/.gdignore
Normal file
BIN
addons/terrain_3d/brushes/acrylic1.exr
Normal file
BIN
addons/terrain_3d/brushes/circle0.exr
Normal file
BIN
addons/terrain_3d/brushes/circle1.exr
Normal file
BIN
addons/terrain_3d/brushes/circle2.exr
Normal file
BIN
addons/terrain_3d/brushes/circle3.exr
Normal file
BIN
addons/terrain_3d/brushes/circle4.exr
Normal file
BIN
addons/terrain_3d/brushes/hill1.exr
Normal file
BIN
addons/terrain_3d/brushes/hill2.exr
Normal file
BIN
addons/terrain_3d/brushes/mountain1.exr
Normal file
BIN
addons/terrain_3d/brushes/mountain2.exr
Normal file
BIN
addons/terrain_3d/brushes/mountain3.exr
Normal file
BIN
addons/terrain_3d/brushes/mountain4.exr
Normal file
BIN
addons/terrain_3d/brushes/peak1.exr
Normal file
BIN
addons/terrain_3d/brushes/peak2.exr
Normal file
BIN
addons/terrain_3d/brushes/peak3.exr
Normal file
BIN
addons/terrain_3d/brushes/ring1.exr
Normal file
BIN
addons/terrain_3d/brushes/smoke.exr
Normal file
BIN
addons/terrain_3d/brushes/square1.exr
Normal file
BIN
addons/terrain_3d/brushes/square2.exr
Normal file
BIN
addons/terrain_3d/brushes/square3.exr
Normal file
BIN
addons/terrain_3d/brushes/square4.exr
Normal file
BIN
addons/terrain_3d/brushes/square5.exr
Normal file
BIN
addons/terrain_3d/brushes/stones.exr
Normal file
BIN
addons/terrain_3d/brushes/terrain1.exr
Normal file
BIN
addons/terrain_3d/brushes/terrain2.exr
Normal file
BIN
addons/terrain_3d/brushes/terrain3.exr
Normal file
BIN
addons/terrain_3d/brushes/terrain4.exr
Normal file
BIN
addons/terrain_3d/brushes/terrain5.exr
Normal file
BIN
addons/terrain_3d/brushes/terrain6.exr
Normal file
BIN
addons/terrain_3d/brushes/texture1.exr
Normal file
BIN
addons/terrain_3d/brushes/texture2.exr
Normal file
BIN
addons/terrain_3d/brushes/texture3.exr
Normal file
BIN
addons/terrain_3d/brushes/texture4.exr
Normal file
BIN
addons/terrain_3d/brushes/texture5.exr
Normal file
BIN
addons/terrain_3d/brushes/vegetation1.exr
Normal file
299
addons/terrain_3d/editor.gd
Normal file
|
|
@ -0,0 +1,299 @@
|
||||||
|
@tool
|
||||||
|
extends EditorPlugin
|
||||||
|
#class_name Terrain3DEditorPlugin Cannot be named until Godot #75388
|
||||||
|
|
||||||
|
|
||||||
|
# Includes
|
||||||
|
const UI: Script = preload("res://addons/terrain_3d/src/ui.gd")
|
||||||
|
const RegionGizmo: Script = preload("res://addons/terrain_3d/src/region_gizmo.gd")
|
||||||
|
const ASSET_DOCK: String = "res://addons/terrain_3d/src/asset_dock.tscn"
|
||||||
|
const PS_DOCK_POSITION: String = "terrain3d/config/dock_position"
|
||||||
|
const PS_DOCK_PINNED: String = "terrain3d/config/dock_pinned"
|
||||||
|
|
||||||
|
var terrain: Terrain3D
|
||||||
|
var _last_terrain: Terrain3D
|
||||||
|
var nav_region: NavigationRegion3D
|
||||||
|
|
||||||
|
var editor: Terrain3DEditor
|
||||||
|
var ui: Node # Terrain3DUI see Godot #75388
|
||||||
|
var asset_dock: PanelContainer
|
||||||
|
var region_gizmo: RegionGizmo
|
||||||
|
var visible: bool
|
||||||
|
var current_region_position: Vector2
|
||||||
|
var mouse_global_position: Vector3 = Vector3.ZERO
|
||||||
|
|
||||||
|
# Track negative input (CTRL)
|
||||||
|
var _negative_input: bool = false
|
||||||
|
# Track state prior to pressing CTRL: -1 not tracked, 0 false, 1 true
|
||||||
|
var _prev_enable_state: int = -1
|
||||||
|
|
||||||
|
|
||||||
|
func _enter_tree() -> void:
|
||||||
|
editor = Terrain3DEditor.new()
|
||||||
|
ui = UI.new()
|
||||||
|
ui.plugin = self
|
||||||
|
add_child(ui)
|
||||||
|
|
||||||
|
region_gizmo = RegionGizmo.new()
|
||||||
|
|
||||||
|
scene_changed.connect(_on_scene_changed)
|
||||||
|
|
||||||
|
asset_dock = load(ASSET_DOCK).instantiate()
|
||||||
|
asset_dock.initialize(self)
|
||||||
|
|
||||||
|
|
||||||
|
func _exit_tree() -> void:
|
||||||
|
asset_dock.remove_dock(true)
|
||||||
|
asset_dock.queue_free()
|
||||||
|
ui.queue_free()
|
||||||
|
editor.free()
|
||||||
|
|
||||||
|
scene_changed.disconnect(_on_scene_changed)
|
||||||
|
|
||||||
|
|
||||||
|
func _handles(p_object: Object) -> bool:
|
||||||
|
if p_object is Terrain3D:
|
||||||
|
return true
|
||||||
|
|
||||||
|
# Terrain3DObjects requires access to EditorUndoRedoManager. The only way to make sure it
|
||||||
|
# always has it, is to pass it in here. _edit is NOT called if the node is cut and pasted.
|
||||||
|
if p_object is Terrain3DObjects:
|
||||||
|
p_object.editor_setup(self)
|
||||||
|
elif p_object is Node3D and p_object.get_parent() is Terrain3DObjects:
|
||||||
|
p_object.get_parent().editor_setup(self)
|
||||||
|
|
||||||
|
if is_instance_valid(_last_terrain) and _last_terrain.is_inside_tree() and p_object is NavigationRegion3D:
|
||||||
|
return true
|
||||||
|
|
||||||
|
return false
|
||||||
|
|
||||||
|
|
||||||
|
func _edit(p_object: Object) -> void:
|
||||||
|
if !p_object:
|
||||||
|
_clear()
|
||||||
|
|
||||||
|
if p_object is Terrain3D:
|
||||||
|
if p_object == terrain:
|
||||||
|
return
|
||||||
|
terrain = p_object
|
||||||
|
_last_terrain = terrain
|
||||||
|
editor.set_terrain(terrain)
|
||||||
|
region_gizmo.set_node_3d(terrain)
|
||||||
|
terrain.add_gizmo(region_gizmo)
|
||||||
|
terrain.set_plugin(self)
|
||||||
|
|
||||||
|
# Connect to new Assets resource
|
||||||
|
if not terrain.assets_changed.is_connected(asset_dock.update_assets):
|
||||||
|
terrain.assets_changed.connect(asset_dock.update_assets)
|
||||||
|
asset_dock.update_assets()
|
||||||
|
# Connect to new Storage resource
|
||||||
|
if not terrain.storage_changed.is_connected(_load_storage):
|
||||||
|
terrain.storage_changed.connect(_load_storage)
|
||||||
|
_load_storage()
|
||||||
|
else:
|
||||||
|
_clear()
|
||||||
|
|
||||||
|
if is_instance_valid(_last_terrain) and _last_terrain.is_inside_tree():
|
||||||
|
if p_object is NavigationRegion3D:
|
||||||
|
nav_region = p_object
|
||||||
|
else:
|
||||||
|
nav_region = null
|
||||||
|
|
||||||
|
|
||||||
|
func _make_visible(p_visible: bool, p_redraw: bool = false) -> void:
|
||||||
|
visible = p_visible
|
||||||
|
ui.set_visible(visible)
|
||||||
|
update_region_grid()
|
||||||
|
asset_dock.update_dock(visible)
|
||||||
|
|
||||||
|
|
||||||
|
func _clear() -> void:
|
||||||
|
if is_terrain_valid():
|
||||||
|
terrain.storage_changed.disconnect(_load_storage)
|
||||||
|
|
||||||
|
terrain.clear_gizmos()
|
||||||
|
terrain = null
|
||||||
|
editor.set_terrain(null)
|
||||||
|
|
||||||
|
ui.clear_picking()
|
||||||
|
|
||||||
|
region_gizmo.clear()
|
||||||
|
|
||||||
|
|
||||||
|
func _forward_3d_gui_input(p_viewport_camera: Camera3D, p_event: InputEvent) -> int:
|
||||||
|
if not is_terrain_valid():
|
||||||
|
return AFTER_GUI_INPUT_PASS
|
||||||
|
|
||||||
|
## Track negative input (CTRL)
|
||||||
|
if p_event is InputEventKey and not p_event.echo and p_event.keycode == KEY_CTRL:
|
||||||
|
if p_event.is_pressed():
|
||||||
|
_negative_input = true
|
||||||
|
_prev_enable_state = int(ui.toolbar_settings.get_setting("enable"))
|
||||||
|
ui.toolbar_settings.set_setting("enable", false)
|
||||||
|
else:
|
||||||
|
_negative_input = false
|
||||||
|
ui.toolbar_settings.set_setting("enable", bool(_prev_enable_state))
|
||||||
|
_prev_enable_state = -1
|
||||||
|
|
||||||
|
## Handle mouse movement
|
||||||
|
if p_event is InputEventMouseMotion:
|
||||||
|
if Input.is_mouse_button_pressed(MOUSE_BUTTON_RIGHT):
|
||||||
|
return AFTER_GUI_INPUT_PASS
|
||||||
|
|
||||||
|
if _prev_enable_state >= 0 and not Input.is_key_pressed(KEY_CTRL):
|
||||||
|
_negative_input = false
|
||||||
|
ui.toolbar_settings.set_setting("enable", bool(_prev_enable_state))
|
||||||
|
_prev_enable_state = -1
|
||||||
|
|
||||||
|
## Setup for active camera & viewport
|
||||||
|
|
||||||
|
# Snap terrain to current camera
|
||||||
|
terrain.set_camera(p_viewport_camera)
|
||||||
|
|
||||||
|
# Detect if viewport is set to half_resolution
|
||||||
|
# Structure is: Node3DEditorViewportContainer/Node3DEditorViewport(4)/SubViewportContainer/SubViewport/Camera3D
|
||||||
|
var editor_vpc: SubViewportContainer = p_viewport_camera.get_parent().get_parent()
|
||||||
|
var full_resolution: bool = false if editor_vpc.stretch_shrink == 2 else true
|
||||||
|
|
||||||
|
## Get mouse location on terrain
|
||||||
|
|
||||||
|
# Project 2D mouse position to 3D position and direction
|
||||||
|
var mouse_pos: Vector2 = p_event.position if full_resolution else p_event.position/2
|
||||||
|
var camera_pos: Vector3 = p_viewport_camera.project_ray_origin(mouse_pos)
|
||||||
|
var camera_dir: Vector3 = p_viewport_camera.project_ray_normal(mouse_pos)
|
||||||
|
|
||||||
|
# If region tool, grab mouse position without considering height
|
||||||
|
if editor.get_tool() == Terrain3DEditor.REGION:
|
||||||
|
var t = -Vector3(0, 1, 0).dot(camera_pos) / Vector3(0, 1, 0).dot(camera_dir)
|
||||||
|
mouse_global_position = (camera_pos + t * camera_dir)
|
||||||
|
else:
|
||||||
|
# Else look for intersection with terrain
|
||||||
|
var intersection_point: Vector3 = terrain.get_intersection(camera_pos, camera_dir)
|
||||||
|
if intersection_point.z > 3.4e38 or is_nan(intersection_point.z): # max double or nan
|
||||||
|
return AFTER_GUI_INPUT_STOP
|
||||||
|
mouse_global_position = intersection_point
|
||||||
|
|
||||||
|
## Update decal
|
||||||
|
ui.decal.global_position = mouse_global_position
|
||||||
|
ui.decal.albedo_mix = 1.0
|
||||||
|
if ui.decal_timer.is_stopped():
|
||||||
|
ui.update_decal()
|
||||||
|
else:
|
||||||
|
ui.decal_timer.start()
|
||||||
|
|
||||||
|
## Update region highlight
|
||||||
|
var region_size = terrain.get_storage().get_region_size()
|
||||||
|
var region_position: Vector2 = ( Vector2(mouse_global_position.x, mouse_global_position.z) \
|
||||||
|
/ (region_size * terrain.get_mesh_vertex_spacing()) ).floor()
|
||||||
|
if current_region_position != region_position:
|
||||||
|
current_region_position = region_position
|
||||||
|
update_region_grid()
|
||||||
|
|
||||||
|
if Input.is_mouse_button_pressed(MOUSE_BUTTON_LEFT) and editor.is_operating():
|
||||||
|
editor.operate(mouse_global_position, p_viewport_camera.rotation.y)
|
||||||
|
return AFTER_GUI_INPUT_STOP
|
||||||
|
|
||||||
|
elif p_event is InputEventMouseButton:
|
||||||
|
ui.update_decal()
|
||||||
|
|
||||||
|
if p_event.get_button_index() == MOUSE_BUTTON_LEFT:
|
||||||
|
if p_event.is_pressed():
|
||||||
|
if Input.is_mouse_button_pressed(MOUSE_BUTTON_RIGHT):
|
||||||
|
return AFTER_GUI_INPUT_STOP
|
||||||
|
|
||||||
|
# If picking
|
||||||
|
if ui.is_picking():
|
||||||
|
ui.pick(mouse_global_position)
|
||||||
|
if not ui.operation_builder or not ui.operation_builder.is_ready():
|
||||||
|
return AFTER_GUI_INPUT_STOP
|
||||||
|
|
||||||
|
# If adjusting regions
|
||||||
|
if editor.get_tool() == Terrain3DEditor.REGION:
|
||||||
|
# Skip regions that already exist or don't
|
||||||
|
var has_region: bool = terrain.get_storage().has_region(mouse_global_position)
|
||||||
|
var op: int = editor.get_operation()
|
||||||
|
if ( has_region and op == Terrain3DEditor.ADD) or \
|
||||||
|
( not has_region and op == Terrain3DEditor.SUBTRACT ):
|
||||||
|
return AFTER_GUI_INPUT_STOP
|
||||||
|
|
||||||
|
# If an automatic operation is ready to go (e.g. gradient)
|
||||||
|
if ui.operation_builder and ui.operation_builder.is_ready():
|
||||||
|
ui.operation_builder.apply_operation(editor, mouse_global_position, p_viewport_camera.rotation.y)
|
||||||
|
return AFTER_GUI_INPUT_STOP
|
||||||
|
|
||||||
|
# Mouse clicked, start editing
|
||||||
|
editor.start_operation(mouse_global_position)
|
||||||
|
editor.operate(mouse_global_position, p_viewport_camera.rotation.y)
|
||||||
|
return AFTER_GUI_INPUT_STOP
|
||||||
|
|
||||||
|
elif editor.is_operating():
|
||||||
|
# Mouse released, save undo data
|
||||||
|
editor.stop_operation()
|
||||||
|
return AFTER_GUI_INPUT_STOP
|
||||||
|
|
||||||
|
return AFTER_GUI_INPUT_PASS
|
||||||
|
|
||||||
|
|
||||||
|
func _load_storage() -> void:
|
||||||
|
if terrain:
|
||||||
|
update_region_grid()
|
||||||
|
|
||||||
|
|
||||||
|
func update_region_grid() -> void:
|
||||||
|
if not region_gizmo:
|
||||||
|
return
|
||||||
|
|
||||||
|
region_gizmo.set_hidden(not visible)
|
||||||
|
|
||||||
|
if is_terrain_valid():
|
||||||
|
region_gizmo.show_rect = editor.get_tool() == Terrain3DEditor.REGION
|
||||||
|
region_gizmo.use_secondary_color = editor.get_operation() == Terrain3DEditor.SUBTRACT
|
||||||
|
region_gizmo.region_position = current_region_position
|
||||||
|
region_gizmo.region_size = terrain.get_storage().get_region_size() * terrain.get_mesh_vertex_spacing()
|
||||||
|
region_gizmo.grid = terrain.get_storage().get_region_offsets()
|
||||||
|
|
||||||
|
terrain.update_gizmos()
|
||||||
|
return
|
||||||
|
|
||||||
|
region_gizmo.show_rect = false
|
||||||
|
region_gizmo.region_size = 1024
|
||||||
|
region_gizmo.grid = [Vector2i.ZERO]
|
||||||
|
|
||||||
|
|
||||||
|
func _on_scene_changed(scene_root: Node) -> void:
|
||||||
|
if not scene_root:
|
||||||
|
return
|
||||||
|
|
||||||
|
for node in scene_root.find_children("", "Terrain3DObjects"):
|
||||||
|
node.editor_setup(self)
|
||||||
|
|
||||||
|
asset_dock.update_assets()
|
||||||
|
await get_tree().create_timer(2).timeout
|
||||||
|
asset_dock.update_thumbnails()
|
||||||
|
|
||||||
|
|
||||||
|
func is_terrain_valid(p_terrain: Terrain3D = null) -> bool:
|
||||||
|
var t: Terrain3D
|
||||||
|
if p_terrain:
|
||||||
|
t = p_terrain
|
||||||
|
else:
|
||||||
|
t = terrain
|
||||||
|
if is_instance_valid(t) and t.is_inside_tree() and t.get_storage():
|
||||||
|
return true
|
||||||
|
return false
|
||||||
|
|
||||||
|
|
||||||
|
func is_selected() -> bool:
|
||||||
|
var selected: Array[Node] = get_editor_interface().get_selection().get_selected_nodes()
|
||||||
|
for node in selected:
|
||||||
|
if node.get_instance_id() == _last_terrain.get_instance_id():
|
||||||
|
return true
|
||||||
|
|
||||||
|
return false
|
||||||
|
|
||||||
|
|
||||||
|
func select_terrain() -> void:
|
||||||
|
if is_instance_valid(_last_terrain) and is_terrain_valid(_last_terrain) and not is_selected():
|
||||||
|
var es: EditorSelection = get_editor_interface().get_selection()
|
||||||
|
es.clear()
|
||||||
|
es.add_node(_last_terrain)
|
||||||
41
addons/terrain_3d/extras/import_sgt.gd
Normal file
|
|
@ -0,0 +1,41 @@
|
||||||
|
## Import From SimpleGrassTextured
|
||||||
|
#
|
||||||
|
# This script demonstrates how to import transforms from SimpleGrassTextured. To use it:
|
||||||
|
#
|
||||||
|
# 1. Setup the mesh asset you wish to use in the asset dock.
|
||||||
|
# 1. Select your Terrain3D node.
|
||||||
|
# 1. In the inspector, click Script (very bottom) and Quick Load import_sgt.gd.
|
||||||
|
# 1. At the very top, assign your SimpleGrassTextured node.
|
||||||
|
# 1. Input the desired mesh asset ID.
|
||||||
|
# 1. Click import. The output window and console will report when finished.
|
||||||
|
# 1. Clear the script from your Terrain3D node, and save your scene.
|
||||||
|
#
|
||||||
|
# The instance transforms are now stored in your Storage resource.
|
||||||
|
#
|
||||||
|
# Use clear_instances to erase all instances that match the assign_mesh_id.
|
||||||
|
#
|
||||||
|
# The add_transforms function (called by add_multimesh) applies the height_offset specified in the
|
||||||
|
# Terrain3DMeshAsset.
|
||||||
|
# Once the transforms are imported, you can reassign any mesh you like into this mesh slot.
|
||||||
|
|
||||||
|
@tool
|
||||||
|
extends Terrain3D
|
||||||
|
|
||||||
|
@export var simple_grass_textured: MultiMeshInstance3D
|
||||||
|
@export var assign_mesh_id: int
|
||||||
|
@export var import: bool = false : set = import_sgt
|
||||||
|
@export var clear_instances: bool = false : set = clear_multimeshes
|
||||||
|
|
||||||
|
|
||||||
|
func clear_multimeshes(value: bool) -> void:
|
||||||
|
get_instancer().clear_by_mesh(assign_mesh_id)
|
||||||
|
|
||||||
|
|
||||||
|
func import_sgt(value: bool) -> void:
|
||||||
|
var sgt_mm: MultiMesh = simple_grass_textured.multimesh
|
||||||
|
var global_xform: Transform3D = simple_grass_textured.global_transform
|
||||||
|
print("Starting to import %d instances from SimpleGrassTextured using mesh id %d" % [ sgt_mm.instance_count, assign_mesh_id])
|
||||||
|
var time: int = Time.get_ticks_msec()
|
||||||
|
get_instancer().add_multimesh(assign_mesh_id, sgt_mm, simple_grass_textured.global_transform)
|
||||||
|
print("Import complete in %.2f seconds" % [ float(Time.get_ticks_msec() - time)/1000. ])
|
||||||
|
|
||||||
146
addons/terrain_3d/extras/minimum.gdshader
Normal file
|
|
@ -0,0 +1,146 @@
|
||||||
|
// This shader is the minimum needed to allow the terrain to function, without any texturing.
|
||||||
|
|
||||||
|
shader_type spatial;
|
||||||
|
render_mode blend_mix,depth_draw_opaque,cull_back,diffuse_burley,specular_schlick_ggx;
|
||||||
|
|
||||||
|
// Private uniforms
|
||||||
|
uniform float _region_size = 1024.0;
|
||||||
|
uniform float _region_texel_size = 0.0009765625; // = 1/1024
|
||||||
|
uniform float _mesh_vertex_spacing = 1.0;
|
||||||
|
uniform float _mesh_vertex_density = 1.0; // = 1/_mesh_vertex_spacing
|
||||||
|
uniform int _region_map_size = 16;
|
||||||
|
uniform int _region_map[256];
|
||||||
|
uniform vec2 _region_offsets[256];
|
||||||
|
uniform sampler2DArray _height_maps : repeat_disable;
|
||||||
|
uniform usampler2DArray _control_maps : repeat_disable;
|
||||||
|
uniform sampler2DArray _color_maps : source_color, filter_linear_mipmap_anisotropic, repeat_disable;
|
||||||
|
uniform sampler2DArray _texture_array_albedo : source_color, filter_linear_mipmap_anisotropic, repeat_enable;
|
||||||
|
uniform sampler2DArray _texture_array_normal : hint_normal, filter_linear_mipmap_anisotropic, repeat_enable;
|
||||||
|
|
||||||
|
uniform float _texture_uv_scale_array[32];
|
||||||
|
uniform float _texture_uv_rotation_array[32];
|
||||||
|
uniform vec4 _texture_color_array[32];
|
||||||
|
uniform uint _background_mode = 1u; // NONE = 0, FLAT = 1, NOISE = 2
|
||||||
|
uniform uint _mouse_layer = 0x80000000u; // Layer 32
|
||||||
|
|
||||||
|
varying flat vec2 v_uv_offset;
|
||||||
|
varying flat vec2 v_uv2_offset;
|
||||||
|
|
||||||
|
////////////////////////
|
||||||
|
// Vertex
|
||||||
|
////////////////////////
|
||||||
|
|
||||||
|
// Takes in UV world space coordinates, returns ivec3 with:
|
||||||
|
// XY: (0 to _region_size) coordinates within a region
|
||||||
|
// Z: layer index used for texturearrays, -1 if not in a region
|
||||||
|
ivec3 get_region_uv(vec2 uv) {
|
||||||
|
uv *= _region_texel_size;
|
||||||
|
ivec2 pos = ivec2(floor(uv)) + (_region_map_size / 2);
|
||||||
|
int bounds = int(pos.x>=0 && pos.x<_region_map_size && pos.y>=0 && pos.y<_region_map_size);
|
||||||
|
int layer_index = _region_map[ pos.y * _region_map_size + pos.x ] * bounds - 1;
|
||||||
|
return ivec3(ivec2((uv - _region_offsets[layer_index]) * _region_size), layer_index);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Takes in UV2 region space coordinates, returns vec3 with:
|
||||||
|
// XY: (0 to 1) coordinates within a region
|
||||||
|
// Z: layer index used for texturearrays, -1 if not in a region
|
||||||
|
vec3 get_region_uv2(vec2 uv) {
|
||||||
|
// Vertex function added half a texel to UV2, to center the UV's. vertex(), fragment() and get_height()
|
||||||
|
// call this with reclaimed versions of UV2, so to keep the last row/column within the correct
|
||||||
|
// window, take back the half pixel before the floor().
|
||||||
|
ivec2 pos = ivec2(floor(uv - vec2(_region_texel_size * 0.5))) + (_region_map_size / 2);
|
||||||
|
int bounds = int(pos.x>=0 && pos.x<_region_map_size && pos.y>=0 && pos.y<_region_map_size);
|
||||||
|
int layer_index = _region_map[ pos.y * _region_map_size + pos.x ] * bounds - 1;
|
||||||
|
// The return value is still texel-centered.
|
||||||
|
return vec3(uv - _region_offsets[layer_index], float(layer_index));
|
||||||
|
}
|
||||||
|
|
||||||
|
// 1 lookup
|
||||||
|
float get_height(vec2 uv) {
|
||||||
|
highp float height = 0.0;
|
||||||
|
vec3 region = get_region_uv2(uv);
|
||||||
|
if (region.z >= 0.) {
|
||||||
|
height = texture(_height_maps, region).r;
|
||||||
|
}
|
||||||
|
return height;
|
||||||
|
}
|
||||||
|
|
||||||
|
void vertex() {
|
||||||
|
// Get vertex of flat plane in world coordinates and set world UV
|
||||||
|
vec3 vertex = (MODEL_MATRIX * vec4(VERTEX, 1.0)).xyz;
|
||||||
|
|
||||||
|
// UV coordinates in world space. Values are 0 to _region_size within regions
|
||||||
|
UV = round(vertex.xz * _mesh_vertex_density);
|
||||||
|
|
||||||
|
// Discard vertices for Holes. 1 lookup
|
||||||
|
ivec3 region = get_region_uv(UV);
|
||||||
|
uint control = texelFetch(_control_maps, region, 0).r;
|
||||||
|
bool hole = bool(control >>2u & 0x1u);
|
||||||
|
// Show holes to all cameras except mouse camera (on exactly 1 layer)
|
||||||
|
if ( !(CAMERA_VISIBLE_LAYERS == _mouse_layer) &&
|
||||||
|
(hole || (_background_mode == 0u && region.z < 0)) ) {
|
||||||
|
VERTEX.x = 0./0.;
|
||||||
|
} else {
|
||||||
|
// UV coordinates in region space + texel offset. Values are 0 to 1 within regions
|
||||||
|
UV2 = (UV + vec2(0.5)) * _region_texel_size;
|
||||||
|
|
||||||
|
// Get final vertex location and save it
|
||||||
|
VERTEX.y = get_height(UV2);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Transform UVs to local to avoid poor precision during varying interpolation.
|
||||||
|
v_uv_offset = MODEL_MATRIX[3].xz * _mesh_vertex_density;
|
||||||
|
UV -= v_uv_offset;
|
||||||
|
v_uv2_offset = v_uv_offset * _region_texel_size;
|
||||||
|
UV2 -= v_uv2_offset;
|
||||||
|
}
|
||||||
|
|
||||||
|
////////////////////////
|
||||||
|
// Fragment
|
||||||
|
////////////////////////
|
||||||
|
|
||||||
|
// 3 lookups
|
||||||
|
vec3 get_normal(vec2 uv, out vec3 tangent, out vec3 binormal) {
|
||||||
|
// Get the height of the current vertex
|
||||||
|
float height = get_height(uv);
|
||||||
|
|
||||||
|
// Get the heights to the right and in front, but because of hardware
|
||||||
|
// interpolation on the edges of the heightmaps, the values are off
|
||||||
|
// causing the normal map to look weird. So, near the edges of the map
|
||||||
|
// get the heights to the left or behind instead. Hacky solution that
|
||||||
|
// reduces the artifact, but doesn't fix it entirely. See #185.
|
||||||
|
float u, v;
|
||||||
|
if(mod(uv.y*_region_size, _region_size) > _region_size-2.) {
|
||||||
|
v = get_height(uv + vec2(0, -_region_texel_size)) - height;
|
||||||
|
} else {
|
||||||
|
v = height - get_height(uv + vec2(0, _region_texel_size));
|
||||||
|
}
|
||||||
|
if(mod(uv.x*_region_size, _region_size) > _region_size-2.) {
|
||||||
|
u = get_height(uv + vec2(-_region_texel_size, 0)) - height;
|
||||||
|
} else {
|
||||||
|
u = height - get_height(uv + vec2(_region_texel_size, 0));
|
||||||
|
}
|
||||||
|
|
||||||
|
vec3 normal = vec3(u, _mesh_vertex_spacing, v);
|
||||||
|
normal = normalize(normal);
|
||||||
|
tangent = cross(normal, vec3(0, 0, 1));
|
||||||
|
binormal = cross(normal, tangent);
|
||||||
|
return normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
void fragment() {
|
||||||
|
// Recover UVs
|
||||||
|
vec2 uv = UV + v_uv_offset;
|
||||||
|
vec2 uv2 = UV2 + v_uv2_offset;
|
||||||
|
|
||||||
|
// Calculate Terrain Normals. 4 lookups
|
||||||
|
vec3 w_tangent, w_binormal;
|
||||||
|
vec3 w_normal = get_normal(uv2, w_tangent, w_binormal);
|
||||||
|
NORMAL = mat3(VIEW_MATRIX) * w_normal;
|
||||||
|
TANGENT = mat3(VIEW_MATRIX) * w_tangent;
|
||||||
|
BINORMAL = mat3(VIEW_MATRIX) * w_binormal;
|
||||||
|
|
||||||
|
// Apply PBR
|
||||||
|
ALBEDO=vec3(.2);
|
||||||
|
}
|
||||||
|
|
||||||
90
addons/terrain_3d/extras/project_on_terrain3d.gd
Normal file
|
|
@ -0,0 +1,90 @@
|
||||||
|
# This script is an addon for HungryProton's Scatter https://github.com/HungryProton/scatter
|
||||||
|
# It provides a `Project on Terrain3D` modifier, which allows Scatter
|
||||||
|
# to detect the terrain height from Terrain3D without using collision.
|
||||||
|
# Copy this file into /addons/proton_scatter/src/modifiers
|
||||||
|
# Then uncomment everything below
|
||||||
|
# In the editor, add this modifier to Scatter, then set your Terrain3D node
|
||||||
|
|
||||||
|
# This script is an addon for HungryProton's Scatter https://github.com/HungryProton/scatter
|
||||||
|
# It allows Scatter to detect the terrain height from Terrain3D
|
||||||
|
# Copy this file into /addons/proton_scatter/src/modifiers
|
||||||
|
# Then uncomment everything below (select, press CTRL+K)
|
||||||
|
# In the editor, add this modifier, then set your Terrain3D node
|
||||||
|
|
||||||
|
#@tool
|
||||||
|
#extends "base_modifier.gd"
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#signal projection_completed
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#@export var terrain_node : NodePath
|
||||||
|
#@export var align_with_collision_normal := false
|
||||||
|
#
|
||||||
|
#var _terrain: Terrain3D
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#func _init() -> void:
|
||||||
|
#display_name = "Project On Terrain3D"
|
||||||
|
#category = "Edit"
|
||||||
|
#can_restrict_height = false
|
||||||
|
#global_reference_frame_available = true
|
||||||
|
#local_reference_frame_available = true
|
||||||
|
#individual_instances_reference_frame_available = true
|
||||||
|
#use_global_space_by_default()
|
||||||
|
#
|
||||||
|
#documentation.add_paragraph(
|
||||||
|
#"This is a duplicate of `Project on Colliders` that queries the terrain system
|
||||||
|
#for height and sets the transform height appropriately.
|
||||||
|
#
|
||||||
|
#This modifier must have terrain_node set to a Terrain3D node.")
|
||||||
|
#
|
||||||
|
#var p := documentation.add_parameter("Terrain Node")
|
||||||
|
#p.set_type("NodePath")
|
||||||
|
#p.set_description("Set your Terrain3D node.")
|
||||||
|
#
|
||||||
|
#p = documentation.add_parameter("Align with collision normal")
|
||||||
|
#p.set_type("bool")
|
||||||
|
#p.set_description(
|
||||||
|
#"Rotate the transform to align it with the collision normal in case
|
||||||
|
#the ray cast hit a collider.")
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#func _process_transforms(transforms, domain, _seed) -> void:
|
||||||
|
#if transforms.is_empty():
|
||||||
|
#return
|
||||||
|
#
|
||||||
|
#if terrain_node:
|
||||||
|
#_terrain = domain.get_root().get_node_or_null(terrain_node)
|
||||||
|
#
|
||||||
|
#if not _terrain:
|
||||||
|
#warning += """No Terrain3D node found"""
|
||||||
|
#return
|
||||||
|
#
|
||||||
|
#if not _terrain.storage:
|
||||||
|
#warning += """Terrain3D storage is not initialized"""
|
||||||
|
#return
|
||||||
|
#
|
||||||
|
## Get global transform
|
||||||
|
#var gt: Transform3D = domain.get_global_transform()
|
||||||
|
#var gt_inverse := gt.affine_inverse()
|
||||||
|
#for i in transforms.list.size():
|
||||||
|
#var location: Vector3 = (gt * transforms.list[i]).origin
|
||||||
|
#var height: float = _terrain.storage.get_height(location)
|
||||||
|
#var normal: Vector3 = _terrain.storage.get_normal(location)
|
||||||
|
#
|
||||||
|
#if align_with_collision_normal and not is_nan(normal.x):
|
||||||
|
#transforms.list[i].basis.y = normal
|
||||||
|
#transforms.list[i].basis.x = -transforms.list[i].basis.z.cross(normal)
|
||||||
|
#transforms.list[i].basis = transforms.list[i].basis.orthonormalized()
|
||||||
|
#
|
||||||
|
#transforms.list[i].origin.y = gt.origin.y if is_nan(height) else height - gt.origin.y
|
||||||
|
#
|
||||||
|
#if transforms.is_empty():
|
||||||
|
#warning += """Every point has been removed. Possible reasons include: \n
|
||||||
|
#+ No collider is close enough to the shapes.
|
||||||
|
#+ Ray length is too short.
|
||||||
|
#+ Ray direction is incorrect.
|
||||||
|
#+ Collision mask is not set properly.
|
||||||
|
#+ Max slope is too low.
|
||||||
|
#"""
|
||||||
194
addons/terrain_3d/icons/autoshader.svg
Normal file
|
|
@ -0,0 +1,194 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
height="16"
|
||||||
|
viewBox="0 0 16 16"
|
||||||
|
width="16"
|
||||||
|
version="1.1"
|
||||||
|
id="svg3088"
|
||||||
|
sodipodi:docname="icon_terrain_material.svg"
|
||||||
|
inkscape:version="1.2.2 (732a01da63, 2022-12-09)"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg">
|
||||||
|
<defs
|
||||||
|
id="defs3092">
|
||||||
|
<linearGradient
|
||||||
|
id="linearGradient7208"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
x1="8.3533525"
|
||||||
|
x2="8.3533525"
|
||||||
|
y1="8.3028736"
|
||||||
|
y2="12.261972">
|
||||||
|
<stop
|
||||||
|
offset="0.07497349"
|
||||||
|
stop-color="#5fb2ff"
|
||||||
|
id="stop7204"
|
||||||
|
style="stop-color:#ffd4d4;stop-opacity:1;" />
|
||||||
|
<stop
|
||||||
|
offset="0.63987136"
|
||||||
|
stop-color="#5fb2ff"
|
||||||
|
id="stop7210"
|
||||||
|
style="stop-color:#e69971;stop-opacity:1;" />
|
||||||
|
<stop
|
||||||
|
offset="1"
|
||||||
|
stop-color="#a2d2ff"
|
||||||
|
id="stop7206"
|
||||||
|
style="stop-color:#88fc7f;stop-opacity:1;" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
id="linearGradient7200"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
x1="8.3533525"
|
||||||
|
x2="8.3533525"
|
||||||
|
y1="8.3028736"
|
||||||
|
y2="12.261972">
|
||||||
|
<stop
|
||||||
|
offset="0.0442211"
|
||||||
|
stop-color="#5fb2ff"
|
||||||
|
id="stop7186"
|
||||||
|
style="stop-color:#ff4545;stop-opacity:1;" />
|
||||||
|
<stop
|
||||||
|
offset="0.1382958"
|
||||||
|
stop-color="#5fb2ff"
|
||||||
|
id="stop7188"
|
||||||
|
style="stop-color:#ffe345;stop-opacity:1;" />
|
||||||
|
<stop
|
||||||
|
offset="0.32638258"
|
||||||
|
stop-color="#5fb2ff"
|
||||||
|
id="stop7190"
|
||||||
|
style="stop-color:#80ff45;stop-opacity:1;" />
|
||||||
|
<stop
|
||||||
|
offset="0.5233199"
|
||||||
|
stop-color="#5fb2ff"
|
||||||
|
id="stop7192"
|
||||||
|
style="stop-color:#45ffa2;stop-opacity:1;" />
|
||||||
|
<stop
|
||||||
|
offset="0.69092047"
|
||||||
|
stop-color="#5fb2ff"
|
||||||
|
id="stop7194"
|
||||||
|
style="stop-color:#45d7ff;stop-opacity:1;" />
|
||||||
|
<stop
|
||||||
|
offset="0.85671425"
|
||||||
|
stop-color="#5fb2ff"
|
||||||
|
id="stop7196"
|
||||||
|
style="stop-color:#8045ff;stop-opacity:1;" />
|
||||||
|
<stop
|
||||||
|
offset="1"
|
||||||
|
stop-color="#a2d2ff"
|
||||||
|
id="stop7198"
|
||||||
|
style="stop-color:#ff4596;stop-opacity:1;" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
id="a-78"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
x1="8.3533525"
|
||||||
|
x2="8.3533525"
|
||||||
|
y1="8.3028736"
|
||||||
|
y2="12.261972">
|
||||||
|
<stop
|
||||||
|
offset="0.04827991"
|
||||||
|
stop-color="#5fb2ff"
|
||||||
|
id="stop974"
|
||||||
|
style="stop-color:#ff4545;stop-opacity:1;" />
|
||||||
|
<stop
|
||||||
|
offset="0.1382958"
|
||||||
|
stop-color="#5fb2ff"
|
||||||
|
id="stop6790"
|
||||||
|
style="stop-color:#ffe345;stop-opacity:1;" />
|
||||||
|
<stop
|
||||||
|
offset="0.32638258"
|
||||||
|
stop-color="#5fb2ff"
|
||||||
|
id="stop6861"
|
||||||
|
style="stop-color:#80ff45;stop-opacity:1;" />
|
||||||
|
<stop
|
||||||
|
offset="0.5233199"
|
||||||
|
stop-color="#5fb2ff"
|
||||||
|
id="stop6932"
|
||||||
|
style="stop-color:#45ffa2;stop-opacity:1;" />
|
||||||
|
<stop
|
||||||
|
offset="0.69092047"
|
||||||
|
stop-color="#5fb2ff"
|
||||||
|
id="stop6934"
|
||||||
|
style="stop-color:#45d7ff;stop-opacity:1;" />
|
||||||
|
<stop
|
||||||
|
offset="0.85671425"
|
||||||
|
stop-color="#5fb2ff"
|
||||||
|
id="stop6936"
|
||||||
|
style="stop-color:#8045ff;stop-opacity:1;" />
|
||||||
|
<stop
|
||||||
|
offset="1"
|
||||||
|
stop-color="#a2d2ff"
|
||||||
|
id="stop28-9"
|
||||||
|
style="stop-color:#ff4596;stop-opacity:1;" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
id="linearGradient986"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
x1="8.3533525"
|
||||||
|
x2="8.3533525"
|
||||||
|
y1="8.3028736"
|
||||||
|
y2="12.261972">
|
||||||
|
<stop
|
||||||
|
offset="0.33542365"
|
||||||
|
stop-color="#5fb2ff"
|
||||||
|
id="stop982"
|
||||||
|
style="stop-color:#ffa7a7;stop-opacity:1;" />
|
||||||
|
<stop
|
||||||
|
offset="1"
|
||||||
|
stop-color="#a2d2ff"
|
||||||
|
id="stop984"
|
||||||
|
style="stop-color:#fc7f7f;stop-opacity:1;" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient7208"
|
||||||
|
id="linearGradient7167"
|
||||||
|
x1="-11.46914"
|
||||||
|
y1="2.1907859"
|
||||||
|
x2="-11.460287"
|
||||||
|
y2="13.545624"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="translate(19.493797)" />
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient7208"
|
||||||
|
id="linearGradient7202"
|
||||||
|
x1="-14.857841"
|
||||||
|
y1="4.9543786"
|
||||||
|
x2="-14.958795"
|
||||||
|
y2="12.934526"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="translate(19.493797)" />
|
||||||
|
</defs>
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="namedview3090"
|
||||||
|
pagecolor="#505050"
|
||||||
|
bordercolor="#eeeeee"
|
||||||
|
borderopacity="1"
|
||||||
|
inkscape:showpageshadow="0"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:deskcolor="#505050"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:zoom="12.59375"
|
||||||
|
inkscape:cx="-7.5037221"
|
||||||
|
inkscape:cy="12.466501"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1009"
|
||||||
|
inkscape:window-x="-8"
|
||||||
|
inkscape:window-y="-8"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="svg3088" />
|
||||||
|
<path
|
||||||
|
id="path31"
|
||||||
|
style="fill:url(#linearGradient7167);fill-opacity:1;stroke-width:1.11229"
|
||||||
|
d="m 8.0074686,1.7910156 c -1.368915,0.09588 -1.692429,3.8264137 -2.822266,3.7910156 -1.977176,-0.061946 -2.315719,3.0789623 -3.148437,4.6777348 L 0.20278059,11.044922 7.9898906,14.380859 15.775047,11.044922 13.997703,10.283203 C 13.467188,8.6236354 13.491849,7.2829163 12.616843,6.2304688 11.823643,5.2764167 11.444597,3.7773719 8.6637186,1.9941406 8.4200366,1.8378802 8.2030276,1.7773185 8.0074686,1.7910156 Z" />
|
||||||
|
<path
|
||||||
|
d="m 1.6979896,10.77748 c 1.112295,-1.282509 1.320286,-5.8794797 3.544055,-5.8098075 4.6412106,4.5094283 2.498421,3.8179938 4.057225,7.7556465 -3.217392,0.01725 -3.237576,-1.158088 -7.60128,-1.945839 z"
|
||||||
|
fill="url(#a)"
|
||||||
|
id="path978"
|
||||||
|
style="fill:url(#linearGradient7202);fill-opacity:1;stroke-width:1.19437"
|
||||||
|
sodipodi:nodetypes="cccc" />
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 6 KiB |
38
addons/terrain_3d/icons/autoshader.svg.import
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://bdwolwswwy8wr"
|
||||||
|
path="res://.godot/imported/autoshader.svg-9998e61bbc6afd5b134b767acd17a425.ctex"
|
||||||
|
metadata={
|
||||||
|
"has_editor_variant": true,
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://addons/terrain_3d/icons/autoshader.svg"
|
||||||
|
dest_files=["res://.godot/imported/autoshader.svg-9998e61bbc6afd5b134b767acd17a425.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
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=1
|
||||||
|
svg/scale=1.0
|
||||||
|
editor/scale_with_editor_scale=true
|
||||||
|
editor/convert_colors_with_editor_theme=false
|
||||||
175
addons/terrain_3d/icons/color_paint.svg
Normal file
|
|
@ -0,0 +1,175 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
width="16"
|
||||||
|
height="16"
|
||||||
|
version="1.1"
|
||||||
|
viewBox="0 0 16 16"
|
||||||
|
id="svg2"
|
||||||
|
inkscape:version="1.2.2 (732a01da63, 2022-12-09)"
|
||||||
|
sodipodi:docname="icon_color.svg"
|
||||||
|
xml:space="preserve"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"><metadata
|
||||||
|
id="metadata12"><rdf:RDF><cc:Work
|
||||||
|
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /></cc:Work></rdf:RDF></metadata><defs
|
||||||
|
id="defs10"><linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
id="linearGradient40333"><stop
|
||||||
|
style="stop-color:#fc7f7f;stop-opacity:1;"
|
||||||
|
offset="0"
|
||||||
|
id="stop40329" /><stop
|
||||||
|
style="stop-color:#7fb0bd;stop-opacity:1;"
|
||||||
|
offset="0.50160772"
|
||||||
|
id="stop40337" /><stop
|
||||||
|
style="stop-color:#7ffc7f;stop-opacity:1;"
|
||||||
|
offset="1"
|
||||||
|
id="stop40331" /></linearGradient><inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect8712"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" /><inkscape:path-effect
|
||||||
|
effect="powerstroke"
|
||||||
|
id="path-effect8643"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1"
|
||||||
|
offset_points="0.86174895,0.26516503"
|
||||||
|
not_jump="true"
|
||||||
|
sort_points="true"
|
||||||
|
interpolator_type="CentripetalCatmullRom"
|
||||||
|
interpolator_beta="0.75"
|
||||||
|
start_linecap_type="round"
|
||||||
|
linejoin_type="spiro"
|
||||||
|
miter_limit="4"
|
||||||
|
scale_width="1"
|
||||||
|
end_linecap_type="round" /><inkscape:path-effect
|
||||||
|
effect="simplify"
|
||||||
|
id="path-effect8641"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1"
|
||||||
|
steps="1"
|
||||||
|
threshold="0.0028332064"
|
||||||
|
smooth_angles="0"
|
||||||
|
helper_size="0"
|
||||||
|
simplify_individual_paths="false"
|
||||||
|
simplify_just_coalesce="false"
|
||||||
|
step="1" /><inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect5927"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" /><inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect5921"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" /><inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect5163"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" /><inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect4431"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" /><inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect4425"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" /><inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect4419"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" /><inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect4413"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" /><inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect4407"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" /><inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect4401"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" /><inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect4395"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" /><inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect4389"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" /><inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect2931"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" /><inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect2925"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" /><inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect3156"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" /><inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect4245"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" /><inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect4977"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" /><inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect3156-0"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" /><linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient40333"
|
||||||
|
id="linearGradient35201"
|
||||||
|
x1="5.3624678"
|
||||||
|
y1="3.5122564"
|
||||||
|
x2="12.772088"
|
||||||
|
y2="11.423013"
|
||||||
|
gradientUnits="userSpaceOnUse" /></defs><sodipodi:namedview
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1"
|
||||||
|
objecttolerance="10"
|
||||||
|
gridtolerance="10"
|
||||||
|
guidetolerance="10"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1009"
|
||||||
|
id="namedview8"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:zoom="22.627418"
|
||||||
|
inkscape:cx="7.5793003"
|
||||||
|
inkscape:cy="9.4133584"
|
||||||
|
inkscape:window-x="-8"
|
||||||
|
inkscape:window-y="-8"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="svg2"
|
||||||
|
inkscape:object-paths="false"
|
||||||
|
inkscape:snap-smooth-nodes="false"
|
||||||
|
inkscape:object-nodes="true"
|
||||||
|
inkscape:snap-grids="false"
|
||||||
|
inkscape:snap-to-guides="true"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:showpageshadow="0"
|
||||||
|
inkscape:deskcolor="#d1d1d1"><inkscape:grid
|
||||||
|
type="xygrid"
|
||||||
|
id="grid4140" /></sodipodi:namedview><path
|
||||||
|
fill="none"
|
||||||
|
d="M -0.76108454,-0.19858458 H 16.761085 V 17.323585 H -0.76108454 Z"
|
||||||
|
id="path34808"
|
||||||
|
style="stroke-width:0.73009" /><path
|
||||||
|
d="M 3.3537048,4.6462952 8,0 12.646295,4.6462952 c 4.13963,4.139681 1.207353,11.2167178 -4.6462951,11.2167178 -5.8536477,0 -8.78592555,-7.0770368 -4.6462951,-11.2167178 z"
|
||||||
|
id="path34810"
|
||||||
|
style="fill:url(#linearGradient35201);fill-opacity:1;stroke-width:0.73009"
|
||||||
|
sodipodi:nodetypes="cccsc" /></svg>
|
||||||
|
After Width: | Height: | Size: 5.8 KiB |
38
addons/terrain_3d/icons/color_paint.svg.import
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://krrmpalen8xu"
|
||||||
|
path="res://.godot/imported/color_paint.svg-2a416ebf35da04135017e5c6ef53ea57.ctex"
|
||||||
|
metadata={
|
||||||
|
"has_editor_variant": true,
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://addons/terrain_3d/icons/color_paint.svg"
|
||||||
|
dest_files=["res://.godot/imported/color_paint.svg-2a416ebf35da04135017e5c6ef53ea57.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
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=1
|
||||||
|
svg/scale=1.0
|
||||||
|
editor/scale_with_editor_scale=true
|
||||||
|
editor/convert_colors_with_editor_theme=false
|
||||||
28
addons/terrain_3d/icons/height_add.svg
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Generator: Adobe Illustrator 16.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||||
|
<svg version="1.1"
|
||||||
|
id="svg2" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" sodipodi:docname="icon_height_add.svg" inkscape:version="1.2.2 (732a01da63, 2022-12-09)"
|
||||||
|
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="16px" height="16px"
|
||||||
|
viewBox="0 0 16 16" enable-background="new 0 0 16 16" xml:space="preserve">
|
||||||
|
<defs>
|
||||||
|
|
||||||
|
<inkscape:path-effect lpeversion="1" effect="spiro" is_visible="true" id="path-effect4977"></inkscape:path-effect>
|
||||||
|
<inkscape:path-effect lpeversion="1" effect="spiro" is_visible="true" id="path-effect4245"></inkscape:path-effect>
|
||||||
|
<inkscape:path-effect lpeversion="1" effect="spiro" is_visible="true" id="path-effect3156"></inkscape:path-effect>
|
||||||
|
<inkscape:path-effect lpeversion="1" effect="spiro" is_visible="true" id="path-effect2324"></inkscape:path-effect>
|
||||||
|
|
||||||
|
<inkscape:path-effect lpeversion="1" effect="powerstroke" is_visible="true" scale_width="1" miter_limit="4" linejoin_type="spiro" sort_points="true" not_jump="true" offset_points="0.76255776,0.35156248" id="path-effect2285" start_linecap_type="round" end_linecap_type="round" interpolator_type="CentripetalCatmullRom" interpolator_beta="0.75">
|
||||||
|
</inkscape:path-effect>
|
||||||
|
|
||||||
|
<inkscape:path-effect lpeversion="1" effect="simplify" is_visible="true" step="1" helper_size="0" smooth_angles="0" threshold="0.0028332064" steps="1" id="path-effect2283" simplify_individual_paths="false" simplify_just_coalesce="false">
|
||||||
|
</inkscape:path-effect>
|
||||||
|
</defs>
|
||||||
|
<sodipodi:namedview inkscape:cy="12.81631" inkscape:cx="8.1096304" inkscape:zoom="22.627418" showgrid="false" guidetolerance="10" gridtolerance="10" objecttolerance="10" borderopacity="1" pagecolor="#ffffff" bordercolor="#666666" id="namedview8" inkscape:current-layer="path3154" inkscape:window-maximized="1" inkscape:window-y="-8" inkscape:window-x="-8" inkscape:object-nodes="true" inkscape:snap-grids="false" inkscape:window-height="1009" inkscape:window-width="1920" inkscape:pageshadow="2" inkscape:pageopacity="0" inkscape:object-paths="false" inkscape:snap-smooth-nodes="false" inkscape:snap-to-guides="true" inkscape:pagecheckerboard="0" inkscape:showpageshadow="0" inkscape:deskcolor="#d1d1d1" showguides="false">
|
||||||
|
<inkscape:grid type="xygrid" id="grid4140"></inkscape:grid>
|
||||||
|
</sodipodi:namedview>
|
||||||
|
<path fill="#FC7F7F" d="M15.203,9.736c-0.887-0.184-1.725-0.729-2.248-1.467c-0.525-0.739-0.82-1.83-1.424-2.988
|
||||||
|
C11.229,4.7,10.833,4.103,10.26,3.613C9.678,3.116,8.924,2.751,8.064,2.732c-0.908-0.02-1.713,0.354-2.332,0.875
|
||||||
|
C5.124,4.12,4.712,4.752,4.398,5.367c-0.624,1.225-0.924,2.378-1.49,3.139C2.425,9.154,1.684,9.641,0.895,9.82L0,9.979V16h16V9.9
|
||||||
|
L15.203,9.736z M9,10.688v4H7v-4H4l4-5.25l4,5.25H9z"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 3.1 KiB |
38
addons/terrain_3d/icons/height_add.svg.import
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://bcmbqryggekg1"
|
||||||
|
path="res://.godot/imported/height_add.svg-9e680ce71fa4c541748e081b99167369.ctex"
|
||||||
|
metadata={
|
||||||
|
"has_editor_variant": true,
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://addons/terrain_3d/icons/height_add.svg"
|
||||||
|
dest_files=["res://.godot/imported/height_add.svg-9e680ce71fa4c541748e081b99167369.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
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=1
|
||||||
|
svg/scale=1.0
|
||||||
|
editor/scale_with_editor_scale=true
|
||||||
|
editor/convert_colors_with_editor_theme=false
|
||||||
196
addons/terrain_3d/icons/height_div.svg
Normal file
|
|
@ -0,0 +1,196 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Generator: Adobe Illustrator 16.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
version="1.1"
|
||||||
|
id="svg2"
|
||||||
|
inkscape:version="1.2.2 (732a01da63, 2022-12-09)"
|
||||||
|
sodipodi:docname="icon_height_div.svg"
|
||||||
|
x="0px"
|
||||||
|
y="0px"
|
||||||
|
width="16px"
|
||||||
|
height="16px"
|
||||||
|
viewBox="0 0 16 16"
|
||||||
|
enable-background="new 0 0 16 16"
|
||||||
|
xml:space="preserve"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg">
|
||||||
|
<defs
|
||||||
|
id="defs2033">
|
||||||
|
|
||||||
|
<inkscape:path-effect
|
||||||
|
id="path-effect6469"
|
||||||
|
is_visible="true"
|
||||||
|
effect="spiro"
|
||||||
|
lpeversion="1" />
|
||||||
|
<inkscape:path-effect
|
||||||
|
id="path-effect6463"
|
||||||
|
is_visible="true"
|
||||||
|
effect="spiro"
|
||||||
|
lpeversion="1" />
|
||||||
|
<inkscape:path-effect
|
||||||
|
id="path-effect4977"
|
||||||
|
is_visible="true"
|
||||||
|
effect="spiro"
|
||||||
|
lpeversion="1" />
|
||||||
|
<inkscape:path-effect
|
||||||
|
id="path-effect4245"
|
||||||
|
is_visible="true"
|
||||||
|
effect="spiro"
|
||||||
|
lpeversion="1" />
|
||||||
|
<inkscape:path-effect
|
||||||
|
id="path-effect3156"
|
||||||
|
is_visible="true"
|
||||||
|
effect="spiro"
|
||||||
|
lpeversion="1" />
|
||||||
|
<inkscape:path-effect
|
||||||
|
id="path-effect2324"
|
||||||
|
is_visible="true"
|
||||||
|
effect="spiro"
|
||||||
|
lpeversion="1" />
|
||||||
|
|
||||||
|
<inkscape:path-effect
|
||||||
|
offset_points="0.76255776,0.35156248"
|
||||||
|
not_jump="true"
|
||||||
|
sort_points="true"
|
||||||
|
linejoin_type="spiro"
|
||||||
|
miter_limit="4"
|
||||||
|
scale_width="1"
|
||||||
|
id="path-effect2285"
|
||||||
|
is_visible="true"
|
||||||
|
effect="powerstroke"
|
||||||
|
lpeversion="1"
|
||||||
|
interpolator_beta="0.75"
|
||||||
|
interpolator_type="CentripetalCatmullRom"
|
||||||
|
end_linecap_type="round"
|
||||||
|
start_linecap_type="round">
|
||||||
|
</inkscape:path-effect>
|
||||||
|
|
||||||
|
<inkscape:path-effect
|
||||||
|
steps="1"
|
||||||
|
threshold="0.0028332064"
|
||||||
|
smooth_angles="0"
|
||||||
|
helper_size="0"
|
||||||
|
step="1"
|
||||||
|
id="path-effect2283"
|
||||||
|
is_visible="true"
|
||||||
|
effect="simplify"
|
||||||
|
lpeversion="1"
|
||||||
|
simplify_just_coalesce="false"
|
||||||
|
simplify_individual_paths="false">
|
||||||
|
</inkscape:path-effect>
|
||||||
|
<inkscape:path-effect
|
||||||
|
lpeversion="1"
|
||||||
|
effect="spiro"
|
||||||
|
is_visible="true"
|
||||||
|
id="path-effect4977-4" /><inkscape:path-effect
|
||||||
|
lpeversion="1"
|
||||||
|
effect="spiro"
|
||||||
|
is_visible="true"
|
||||||
|
id="path-effect4245-1" /><inkscape:path-effect
|
||||||
|
lpeversion="1"
|
||||||
|
effect="spiro"
|
||||||
|
is_visible="true"
|
||||||
|
id="path-effect3156-8" /><inkscape:path-effect
|
||||||
|
lpeversion="1"
|
||||||
|
effect="spiro"
|
||||||
|
is_visible="true"
|
||||||
|
id="path-effect2324-5" /><inkscape:path-effect
|
||||||
|
lpeversion="1"
|
||||||
|
effect="powerstroke"
|
||||||
|
is_visible="true"
|
||||||
|
scale_width="1"
|
||||||
|
miter_limit="4"
|
||||||
|
linejoin_type="spiro"
|
||||||
|
sort_points="true"
|
||||||
|
not_jump="true"
|
||||||
|
offset_points="0.76255776,0.35156248"
|
||||||
|
id="path-effect2285-9"
|
||||||
|
start_linecap_type="round"
|
||||||
|
end_linecap_type="round"
|
||||||
|
interpolator_type="CentripetalCatmullRom"
|
||||||
|
interpolator_beta="0.75">
|
||||||
|
</inkscape:path-effect><inkscape:path-effect
|
||||||
|
lpeversion="1"
|
||||||
|
effect="simplify"
|
||||||
|
is_visible="true"
|
||||||
|
step="1"
|
||||||
|
helper_size="0"
|
||||||
|
smooth_angles="0"
|
||||||
|
threshold="0.0028332064"
|
||||||
|
steps="1"
|
||||||
|
id="path-effect2283-2"
|
||||||
|
simplify_individual_paths="false"
|
||||||
|
simplify_just_coalesce="false">
|
||||||
|
</inkscape:path-effect></defs>
|
||||||
|
<sodipodi:namedview
|
||||||
|
showguides="false"
|
||||||
|
bordercolor="#666666"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
borderopacity="1"
|
||||||
|
objecttolerance="10"
|
||||||
|
gridtolerance="10"
|
||||||
|
guidetolerance="10"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:zoom="11.313709"
|
||||||
|
inkscape:cx="3.4913396"
|
||||||
|
inkscape:cy="13.788582"
|
||||||
|
id="namedview8"
|
||||||
|
inkscape:deskcolor="#d1d1d1"
|
||||||
|
inkscape:showpageshadow="0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:snap-to-guides="true"
|
||||||
|
inkscape:snap-smooth-nodes="false"
|
||||||
|
inkscape:object-paths="false"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1009"
|
||||||
|
inkscape:snap-grids="false"
|
||||||
|
inkscape:object-nodes="true"
|
||||||
|
inkscape:window-x="-8"
|
||||||
|
inkscape:window-y="-8"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="svg2">
|
||||||
|
<inkscape:grid
|
||||||
|
type="xygrid"
|
||||||
|
id="grid4140" />
|
||||||
|
</sodipodi:namedview>
|
||||||
|
<path
|
||||||
|
id="path4012"
|
||||||
|
style="fill:#fc7f7f;fill-opacity:1;stroke-width:0.764771"
|
||||||
|
d="M 1.5898438 3.2871094 C 1.0957748 3.280765 0.56716282 3.3249664 0 3.4257812 L 0 15.955078 L 16 15.955078 L 16 12.246094 C 10.09046 15.642843 7.1418918 10.840026 5.1035156 6.2128906 C 6.678498 7.1187996 6.5445981 7.3630122 8.4746094 9.703125 C 11.163354 13.034961 13.74668 11.801049 16 10.460938 L 16 8.2597656 C 8.6991041 14.580269 9.0008764 3.3822748 1.5898438 3.2871094 z " /><path
|
||||||
|
id="path16308"
|
||||||
|
sodipodi:nodetypes="sssscccccccccccssss"
|
||||||
|
display="none"
|
||||||
|
fill="#FC7F7F"
|
||||||
|
d="M8.064,1.4 C7.156,1.38,6.351,1.753,5.732,2.275C5.124,2.788,4.711,3.42,4.398,4.035C3.774,5.26,3.475,6.414,2.908,7.173 c-0.483,0.65-1.224,1.135-2.013,1.315L0,8.646V10.8c1.843,0.457,5.033-1.792,5.506-4.325C6.03,5.322,6.454,3.693,7.883,3.408h0.049 l0.1-0.006c1.329,0.167,1.81,1.646,2.282,2.701c0.816,3.09,3.985,4.793,5.687,4.59V8.568l-0.797-0.166 c-0.888-0.183-1.726-0.729-2.248-1.467c-0.524-0.739-0.819-1.83-1.424-2.988c-0.304-0.581-0.698-1.178-1.271-1.668 C9.678,1.784,8.924,1.418,8.064,1.4z" />
|
||||||
|
<path
|
||||||
|
id="path16308_2_"
|
||||||
|
sodipodi:nodetypes="sssscccccccccccssss"
|
||||||
|
display="none"
|
||||||
|
fill="#FC7F7F"
|
||||||
|
d="M8.064,2.835 C7.156,2.815,6.351,3.188,5.732,3.71c-0.608,0.513-1.021,1.145-1.334,1.76C3.774,6.695,3.475,7.85,2.908,8.608 c-0.483,0.65-1.224,1.136-2.013,1.315L0,10.082v2.153c1.843,0.457,5.033-1.792,5.506-4.325C6.03,6.758,6.454,5.128,7.883,4.844 h0.049l0.1-0.006c1.329,0.167,1.81,1.646,2.282,2.701c0.816,3.09,3.985,4.793,5.687,4.59v-2.125l-0.797-0.166 c-0.888-0.183-1.726-0.729-2.248-1.466c-0.524-0.739-0.819-1.83-1.424-2.988c-0.304-0.581-0.698-1.178-1.271-1.668 C9.678,3.22,8.924,2.854,8.064,2.835z" />
|
||||||
|
<path
|
||||||
|
id="path16308_1_"
|
||||||
|
sodipodi:nodetypes="sssscccccccccccssss"
|
||||||
|
display="none"
|
||||||
|
fill="#FC7F7F"
|
||||||
|
d="M0,6.91v2.139 c1.578,0,16.001,0,16.001,0V6.91H0z" />
|
||||||
|
<path
|
||||||
|
display="none"
|
||||||
|
fill="#FC7F7F"
|
||||||
|
d="M10.064,9.872C9.579,8.813,9.3,6.726,7.882,6.742C6.454,7.026,6.5,8.686,5.976,9.842 C5.39,11.51,1.708,12.982,0,13.574V16c4,0,12,0,16,0v-2.537C14.176,12.84,10.674,11.646,10.064,9.872z"
|
||||||
|
id="path2040" />
|
||||||
|
<path
|
||||||
|
display="none"
|
||||||
|
fill="#FC7F7F"
|
||||||
|
d="M0,8c0,0,0.917,2.709,2.104,2.479S3,5.375,4.063,5.167s0.521,6.083,2.188,5.958 S6.104,4.313,8.458,3.438s-1.583,7.979,0.563,8.688s2.208-8.479,4.521-9.729s-1.292,10.271,1.375,10.75"
|
||||||
|
id="path2042" />
|
||||||
|
|
||||||
|
|
||||||
|
<path
|
||||||
|
d="M 0,0 14.842,0.004 16,0 Z"
|
||||||
|
id="rect12437" /></svg>
|
||||||
|
After Width: | Height: | Size: 6.3 KiB |
38
addons/terrain_3d/icons/height_div.svg.import
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://danh7tb2v6rx7"
|
||||||
|
path="res://.godot/imported/height_div.svg-449a465f9fdd11ab59f2f1c78815408c.ctex"
|
||||||
|
metadata={
|
||||||
|
"has_editor_variant": true,
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://addons/terrain_3d/icons/height_div.svg"
|
||||||
|
dest_files=["res://.godot/imported/height_div.svg-449a465f9fdd11ab59f2f1c78815408c.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
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=1
|
||||||
|
svg/scale=1.0
|
||||||
|
editor/scale_with_editor_scale=true
|
||||||
|
editor/convert_colors_with_editor_theme=false
|
||||||
28
addons/terrain_3d/icons/height_flat.svg
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Generator: Adobe Illustrator 16.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||||
|
<svg version="1.1"
|
||||||
|
id="svg2" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" sodipodi:docname="icon_height_flat.svg" inkscape:version="1.2.2 (732a01da63, 2022-12-09)"
|
||||||
|
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="16px" height="16px"
|
||||||
|
viewBox="0 0 16 16" enable-background="new 0 0 16 16" xml:space="preserve">
|
||||||
|
<defs>
|
||||||
|
|
||||||
|
<inkscape:path-effect lpeversion="1" effect="spiro" is_visible="true" id="path-effect4977"></inkscape:path-effect>
|
||||||
|
<inkscape:path-effect lpeversion="1" effect="spiro" is_visible="true" id="path-effect4245"></inkscape:path-effect>
|
||||||
|
<inkscape:path-effect lpeversion="1" effect="spiro" is_visible="true" id="path-effect3156"></inkscape:path-effect>
|
||||||
|
<inkscape:path-effect lpeversion="1" effect="spiro" is_visible="true" id="path-effect2324"></inkscape:path-effect>
|
||||||
|
|
||||||
|
<inkscape:path-effect lpeversion="1" effect="powerstroke" is_visible="true" scale_width="1" miter_limit="4" linejoin_type="spiro" sort_points="true" not_jump="true" offset_points="0.76255776,0.35156248" id="path-effect2285" start_linecap_type="round" end_linecap_type="round" interpolator_type="CentripetalCatmullRom" interpolator_beta="0.75">
|
||||||
|
</inkscape:path-effect>
|
||||||
|
|
||||||
|
<inkscape:path-effect lpeversion="1" effect="simplify" is_visible="true" step="1" helper_size="0" smooth_angles="0" threshold="0.0028332064" steps="1" id="path-effect2283" simplify_individual_paths="false" simplify_just_coalesce="false">
|
||||||
|
</inkscape:path-effect>
|
||||||
|
</defs>
|
||||||
|
<sodipodi:namedview inkscape:cy="6.8059028" inkscape:cx="11.866136" inkscape:zoom="22.627417" showgrid="false" guidetolerance="10" gridtolerance="10" objecttolerance="10" borderopacity="1" pagecolor="#ffffff" bordercolor="#666666" id="namedview8" inkscape:current-layer="svg2" inkscape:window-maximized="1" inkscape:window-y="-8" inkscape:window-x="-8" inkscape:object-nodes="true" inkscape:snap-grids="false" inkscape:window-height="1009" inkscape:window-width="1920" inkscape:pageshadow="2" inkscape:pageopacity="0" inkscape:object-paths="false" inkscape:snap-smooth-nodes="false" inkscape:snap-to-guides="true" inkscape:pagecheckerboard="0" inkscape:showpageshadow="0" inkscape:deskcolor="#d1d1d1" showguides="false">
|
||||||
|
<inkscape:grid type="xygrid" id="grid4140"></inkscape:grid>
|
||||||
|
</sodipodi:namedview>
|
||||||
|
<path id="path3133" sodipodi:nodetypes="cscccccccscc" fill="#FC7F7F" d="M4.398,8.417c-0.624,1.225-0.924,2.378-1.49,3.138
|
||||||
|
c-0.483,0.649-1.225,1.135-2.014,1.314L0,13.027V16l1.158-0.004L16,16v-3.051l-0.797-0.164c-0.887-0.183-1.725-0.729-2.248-1.467
|
||||||
|
c-0.525-0.738-0.82-1.83-1.424-2.988L4.398,8.417z"/>
|
||||||
|
<polygon fill="#FC7F7F" points="3.375,5.331 7.375,5.331 7.375,8.331 12.625,4.331 7.375,0.331 7.375,3.331 3.375,3.331 "/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 3.2 KiB |
38
addons/terrain_3d/icons/height_flat.svg.import
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://crj0xfyiyr45u"
|
||||||
|
path="res://.godot/imported/height_flat.svg-be726a006bf06e05a7a8867510f3996e.ctex"
|
||||||
|
metadata={
|
||||||
|
"has_editor_variant": true,
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://addons/terrain_3d/icons/height_flat.svg"
|
||||||
|
dest_files=["res://.godot/imported/height_flat.svg-be726a006bf06e05a7a8867510f3996e.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
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=1
|
||||||
|
svg/scale=1.0
|
||||||
|
editor/scale_with_editor_scale=true
|
||||||
|
editor/convert_colors_with_editor_theme=false
|
||||||
201
addons/terrain_3d/icons/height_mul.svg
Normal file
|
|
@ -0,0 +1,201 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Generator: Adobe Illustrator 16.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
version="1.1"
|
||||||
|
id="svg2"
|
||||||
|
inkscape:version="1.2.2 (732a01da63, 2022-12-09)"
|
||||||
|
sodipodi:docname="icon_height_mul.svg"
|
||||||
|
x="0px"
|
||||||
|
y="0px"
|
||||||
|
width="16px"
|
||||||
|
height="16px"
|
||||||
|
viewBox="0 0 16 16"
|
||||||
|
enable-background="new 0 0 16 16"
|
||||||
|
xml:space="preserve"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg">
|
||||||
|
<defs
|
||||||
|
id="defs2033">
|
||||||
|
|
||||||
|
<inkscape:path-effect
|
||||||
|
id="path-effect6469"
|
||||||
|
is_visible="true"
|
||||||
|
effect="spiro"
|
||||||
|
lpeversion="1" />
|
||||||
|
<inkscape:path-effect
|
||||||
|
id="path-effect6463"
|
||||||
|
is_visible="true"
|
||||||
|
effect="spiro"
|
||||||
|
lpeversion="1" />
|
||||||
|
<inkscape:path-effect
|
||||||
|
id="path-effect4977"
|
||||||
|
is_visible="true"
|
||||||
|
effect="spiro"
|
||||||
|
lpeversion="1" />
|
||||||
|
<inkscape:path-effect
|
||||||
|
id="path-effect4245"
|
||||||
|
is_visible="true"
|
||||||
|
effect="spiro"
|
||||||
|
lpeversion="1" />
|
||||||
|
<inkscape:path-effect
|
||||||
|
id="path-effect3156"
|
||||||
|
is_visible="true"
|
||||||
|
effect="spiro"
|
||||||
|
lpeversion="1" />
|
||||||
|
<inkscape:path-effect
|
||||||
|
id="path-effect2324"
|
||||||
|
is_visible="true"
|
||||||
|
effect="spiro"
|
||||||
|
lpeversion="1" />
|
||||||
|
|
||||||
|
<inkscape:path-effect
|
||||||
|
offset_points="0.76255776,0.35156248"
|
||||||
|
not_jump="true"
|
||||||
|
sort_points="true"
|
||||||
|
linejoin_type="spiro"
|
||||||
|
miter_limit="4"
|
||||||
|
scale_width="1"
|
||||||
|
id="path-effect2285"
|
||||||
|
is_visible="true"
|
||||||
|
effect="powerstroke"
|
||||||
|
lpeversion="1"
|
||||||
|
interpolator_beta="0.75"
|
||||||
|
interpolator_type="CentripetalCatmullRom"
|
||||||
|
end_linecap_type="round"
|
||||||
|
start_linecap_type="round">
|
||||||
|
</inkscape:path-effect>
|
||||||
|
|
||||||
|
<inkscape:path-effect
|
||||||
|
steps="1"
|
||||||
|
threshold="0.0028332064"
|
||||||
|
smooth_angles="0"
|
||||||
|
helper_size="0"
|
||||||
|
step="1"
|
||||||
|
id="path-effect2283"
|
||||||
|
is_visible="true"
|
||||||
|
effect="simplify"
|
||||||
|
lpeversion="1"
|
||||||
|
simplify_just_coalesce="false"
|
||||||
|
simplify_individual_paths="false">
|
||||||
|
</inkscape:path-effect>
|
||||||
|
<inkscape:path-effect
|
||||||
|
lpeversion="1"
|
||||||
|
effect="spiro"
|
||||||
|
is_visible="true"
|
||||||
|
id="path-effect4977-4" /><inkscape:path-effect
|
||||||
|
lpeversion="1"
|
||||||
|
effect="spiro"
|
||||||
|
is_visible="true"
|
||||||
|
id="path-effect4245-1" /><inkscape:path-effect
|
||||||
|
lpeversion="1"
|
||||||
|
effect="spiro"
|
||||||
|
is_visible="true"
|
||||||
|
id="path-effect3156-8" /><inkscape:path-effect
|
||||||
|
lpeversion="1"
|
||||||
|
effect="spiro"
|
||||||
|
is_visible="true"
|
||||||
|
id="path-effect2324-5" /><inkscape:path-effect
|
||||||
|
lpeversion="1"
|
||||||
|
effect="powerstroke"
|
||||||
|
is_visible="true"
|
||||||
|
scale_width="1"
|
||||||
|
miter_limit="4"
|
||||||
|
linejoin_type="spiro"
|
||||||
|
sort_points="true"
|
||||||
|
not_jump="true"
|
||||||
|
offset_points="0.76255776,0.35156248"
|
||||||
|
id="path-effect2285-9"
|
||||||
|
start_linecap_type="round"
|
||||||
|
end_linecap_type="round"
|
||||||
|
interpolator_type="CentripetalCatmullRom"
|
||||||
|
interpolator_beta="0.75">
|
||||||
|
</inkscape:path-effect><inkscape:path-effect
|
||||||
|
lpeversion="1"
|
||||||
|
effect="simplify"
|
||||||
|
is_visible="true"
|
||||||
|
step="1"
|
||||||
|
helper_size="0"
|
||||||
|
smooth_angles="0"
|
||||||
|
threshold="0.0028332064"
|
||||||
|
steps="1"
|
||||||
|
id="path-effect2283-2"
|
||||||
|
simplify_individual_paths="false"
|
||||||
|
simplify_just_coalesce="false">
|
||||||
|
</inkscape:path-effect></defs>
|
||||||
|
<sodipodi:namedview
|
||||||
|
showguides="false"
|
||||||
|
bordercolor="#666666"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
borderopacity="1"
|
||||||
|
objecttolerance="10"
|
||||||
|
gridtolerance="10"
|
||||||
|
guidetolerance="10"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:zoom="11.313709"
|
||||||
|
inkscape:cx="13.832776"
|
||||||
|
inkscape:cy="18.031222"
|
||||||
|
id="namedview8"
|
||||||
|
inkscape:deskcolor="#d1d1d1"
|
||||||
|
inkscape:showpageshadow="0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:snap-to-guides="true"
|
||||||
|
inkscape:snap-smooth-nodes="false"
|
||||||
|
inkscape:object-paths="false"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1009"
|
||||||
|
inkscape:snap-grids="false"
|
||||||
|
inkscape:object-nodes="true"
|
||||||
|
inkscape:window-x="-8"
|
||||||
|
inkscape:window-y="-8"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="svg2">
|
||||||
|
<inkscape:grid
|
||||||
|
type="xygrid"
|
||||||
|
id="grid4140" />
|
||||||
|
</sodipodi:namedview>
|
||||||
|
<path
|
||||||
|
style="fill:#fc7f7f;fill-opacity:1;stroke-width:0.764771"
|
||||||
|
d="M 1.5898438,5.5417983 C 1.0957744,5.5354539 0.56716339,5.5780631 0,5.6788781 V 15.955806 H 16 V 10.513229 C 8.6990968,16.833739 9.0008839,5.6369638 1.5898438,5.5417983 Z"
|
||||||
|
id="path4012"
|
||||||
|
sodipodi:nodetypes="sccccs" /><path
|
||||||
|
id="path16308"
|
||||||
|
sodipodi:nodetypes="sssscccccccccccssss"
|
||||||
|
display="none"
|
||||||
|
fill="#FC7F7F"
|
||||||
|
d="M8.064,1.4 C7.156,1.38,6.351,1.753,5.732,2.275C5.124,2.788,4.711,3.42,4.398,4.035C3.774,5.26,3.475,6.414,2.908,7.173 c-0.483,0.65-1.224,1.135-2.013,1.315L0,8.646V10.8c1.843,0.457,5.033-1.792,5.506-4.325C6.03,5.322,6.454,3.693,7.883,3.408h0.049 l0.1-0.006c1.329,0.167,1.81,1.646,2.282,2.701c0.816,3.09,3.985,4.793,5.687,4.59V8.568l-0.797-0.166 c-0.888-0.183-1.726-0.729-2.248-1.467c-0.524-0.739-0.819-1.83-1.424-2.988c-0.304-0.581-0.698-1.178-1.271-1.668 C9.678,1.784,8.924,1.418,8.064,1.4z" />
|
||||||
|
<path
|
||||||
|
id="path16308_2_"
|
||||||
|
sodipodi:nodetypes="sssscccccccccccssss"
|
||||||
|
display="none"
|
||||||
|
fill="#FC7F7F"
|
||||||
|
d="M8.064,2.835 C7.156,2.815,6.351,3.188,5.732,3.71c-0.608,0.513-1.021,1.145-1.334,1.76C3.774,6.695,3.475,7.85,2.908,8.608 c-0.483,0.65-1.224,1.136-2.013,1.315L0,10.082v2.153c1.843,0.457,5.033-1.792,5.506-4.325C6.03,6.758,6.454,5.128,7.883,4.844 h0.049l0.1-0.006c1.329,0.167,1.81,1.646,2.282,2.701c0.816,3.09,3.985,4.793,5.687,4.59v-2.125l-0.797-0.166 c-0.888-0.183-1.726-0.729-2.248-1.466c-0.524-0.739-0.819-1.83-1.424-2.988c-0.304-0.581-0.698-1.178-1.271-1.668 C9.678,3.22,8.924,2.854,8.064,2.835z" />
|
||||||
|
<path
|
||||||
|
id="path16308_1_"
|
||||||
|
sodipodi:nodetypes="sssscccccccccccssss"
|
||||||
|
display="none"
|
||||||
|
fill="#FC7F7F"
|
||||||
|
d="M0,6.91v2.139 c1.578,0,16.001,0,16.001,0V6.91H0z" />
|
||||||
|
<path
|
||||||
|
display="none"
|
||||||
|
fill="#FC7F7F"
|
||||||
|
d="M10.064,9.872C9.579,8.813,9.3,6.726,7.882,6.742C6.454,7.026,6.5,8.686,5.976,9.842 C5.39,11.51,1.708,12.982,0,13.574V16c4,0,12,0,16,0v-2.537C14.176,12.84,10.674,11.646,10.064,9.872z"
|
||||||
|
id="path2040" />
|
||||||
|
<path
|
||||||
|
display="none"
|
||||||
|
fill="#FC7F7F"
|
||||||
|
d="M0,8c0,0,0.917,2.709,2.104,2.479S3,5.375,4.063,5.167s0.521,6.083,2.188,5.958 S6.104,4.313,8.458,3.438s-1.583,7.979,0.563,8.688s2.208-8.479,4.521-9.729s-1.292,10.271,1.375,10.75"
|
||||||
|
id="path2042" />
|
||||||
|
|
||||||
|
|
||||||
|
<path
|
||||||
|
d="M 0,0 14.842,0.004 16,0 Z"
|
||||||
|
id="rect12437" /><path
|
||||||
|
id="path7096"
|
||||||
|
style="fill:#fc7f7f;fill-opacity:1;stroke-width:0.764771"
|
||||||
|
d="M 0,2.0234375 V 3.8085938 C 2.8512164,3.4688215 4.2747356,4.3685854 5.2041205,5.9137947 6.7118368,6.8603322 6.6718914,7.2163955 8.3808594,8.5644531 6.2801351,4.1747406 5.2031416,1.5917313 0,2.0234375 Z"
|
||||||
|
sodipodi:nodetypes="ccccc" /></svg>
|
||||||
|
After Width: | Height: | Size: 6.5 KiB |
38
addons/terrain_3d/icons/height_mul.svg.import
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://bu3q0645kb3el"
|
||||||
|
path="res://.godot/imported/height_mul.svg-2dca20fa42a85408713e9bfe411f3c79.ctex"
|
||||||
|
metadata={
|
||||||
|
"has_editor_variant": true,
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://addons/terrain_3d/icons/height_mul.svg"
|
||||||
|
dest_files=["res://.godot/imported/height_mul.svg-2dca20fa42a85408713e9bfe411f3c79.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
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=1
|
||||||
|
svg/scale=1.0
|
||||||
|
editor/scale_with_editor_scale=true
|
||||||
|
editor/convert_colors_with_editor_theme=false
|
||||||
105
addons/terrain_3d/icons/height_slope.svg
Normal file
|
|
@ -0,0 +1,105 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Generator: Adobe Illustrator 16.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
version="1.1"
|
||||||
|
id="svg2"
|
||||||
|
sodipodi:docname="icon_height_slope.svg"
|
||||||
|
inkscape:version="1.3 (0e150ed6c4, 2023-07-21)"
|
||||||
|
x="0px"
|
||||||
|
y="0px"
|
||||||
|
width="16px"
|
||||||
|
height="16px"
|
||||||
|
viewBox="0 0 16 16"
|
||||||
|
enable-background="new 0 0 16 16"
|
||||||
|
xml:space="preserve"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"> <defs
|
||||||
|
id="defs1"> <inkscape:path-effect
|
||||||
|
lpeversion="1"
|
||||||
|
effect="spiro"
|
||||||
|
is_visible="true"
|
||||||
|
id="path-effect4977" /> <inkscape:path-effect
|
||||||
|
lpeversion="1"
|
||||||
|
effect="spiro"
|
||||||
|
is_visible="true"
|
||||||
|
id="path-effect4245" /> <inkscape:path-effect
|
||||||
|
lpeversion="1"
|
||||||
|
effect="spiro"
|
||||||
|
is_visible="true"
|
||||||
|
id="path-effect3156" /> <inkscape:path-effect
|
||||||
|
lpeversion="1"
|
||||||
|
effect="spiro"
|
||||||
|
is_visible="true"
|
||||||
|
id="path-effect2324" /> <inkscape:path-effect
|
||||||
|
lpeversion="1"
|
||||||
|
effect="powerstroke"
|
||||||
|
is_visible="true"
|
||||||
|
scale_width="1"
|
||||||
|
miter_limit="4"
|
||||||
|
linejoin_type="spiro"
|
||||||
|
sort_points="true"
|
||||||
|
not_jump="true"
|
||||||
|
offset_points="0.76255776,0.35156248"
|
||||||
|
id="path-effect2285"
|
||||||
|
start_linecap_type="round"
|
||||||
|
end_linecap_type="round"
|
||||||
|
interpolator_type="CentripetalCatmullRom"
|
||||||
|
interpolator_beta="0.75"> </inkscape:path-effect> <inkscape:path-effect
|
||||||
|
lpeversion="1"
|
||||||
|
effect="simplify"
|
||||||
|
is_visible="true"
|
||||||
|
step="1"
|
||||||
|
helper_size="0"
|
||||||
|
smooth_angles="0"
|
||||||
|
threshold="0.0028332064"
|
||||||
|
steps="1"
|
||||||
|
id="path-effect2283"
|
||||||
|
simplify_individual_paths="false"
|
||||||
|
simplify_just_coalesce="false"> </inkscape:path-effect> </defs> <sodipodi:namedview
|
||||||
|
inkscape:cy="27.665553"
|
||||||
|
inkscape:cx="-14.760854"
|
||||||
|
inkscape:zoom="5.6568543"
|
||||||
|
showgrid="false"
|
||||||
|
guidetolerance="10"
|
||||||
|
gridtolerance="10"
|
||||||
|
objecttolerance="10"
|
||||||
|
borderopacity="1"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
id="namedview8"
|
||||||
|
inkscape:current-layer="svg2"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:window-y="32"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:object-nodes="true"
|
||||||
|
inkscape:snap-grids="false"
|
||||||
|
inkscape:window-height="1011"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:object-paths="false"
|
||||||
|
inkscape:snap-smooth-nodes="false"
|
||||||
|
inkscape:snap-to-guides="true"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:showpageshadow="0"
|
||||||
|
inkscape:deskcolor="#d1d1d1"
|
||||||
|
showguides="false"> <inkscape:grid
|
||||||
|
type="xygrid"
|
||||||
|
id="grid4140"
|
||||||
|
originx="0"
|
||||||
|
originy="0"
|
||||||
|
spacingy="1"
|
||||||
|
spacingx="1"
|
||||||
|
units="px"
|
||||||
|
visible="false" /> </sodipodi:namedview> <polygon
|
||||||
|
fill="#fc7f7f"
|
||||||
|
points="3.375,5.331 7.375,5.331 7.375,8.331 12.625,4.331 7.375,0.331 7.375,3.331 3.375,3.331 "
|
||||||
|
id="polygon1"
|
||||||
|
transform="rotate(45,9.0843727,9.1561132)" /> <path
|
||||||
|
style="fill:#fc7f7f;fill-opacity:1;stroke:none;stroke-width:2"
|
||||||
|
d="M 0,0 16,16 H 0 Z"
|
||||||
|
id="path1"
|
||||||
|
sodipodi:nodetypes="cccc" /></svg>
|
||||||
|
After Width: | Height: | Size: 3.1 KiB |
38
addons/terrain_3d/icons/height_slope.svg.import
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://0cd7so4kw7da"
|
||||||
|
path="res://.godot/imported/height_slope.svg-e20540c5538d0c57a9d229a772b3d1b3.ctex"
|
||||||
|
metadata={
|
||||||
|
"has_editor_variant": true,
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://addons/terrain_3d/icons/height_slope.svg"
|
||||||
|
dest_files=["res://.godot/imported/height_slope.svg-e20540c5538d0c57a9d229a772b3d1b3.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
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=1
|
||||||
|
svg/scale=1.0
|
||||||
|
editor/scale_with_editor_scale=true
|
||||||
|
editor/convert_colors_with_editor_theme=false
|
||||||
13
addons/terrain_3d/icons/height_smooth.svg
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Generator: Adobe Illustrator 16.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||||
|
<svg version="1.1"
|
||||||
|
id="svg2" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" sodipodi:docname="icon_heightmap_smooth.svg" inkscape:version="0.91 r13725"
|
||||||
|
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="16px" height="16px"
|
||||||
|
viewBox="0 0 16 16" enable-background="new 0 0 16 16" xml:space="preserve">
|
||||||
|
<sodipodi:namedview inkscape:cy="6.6592524" inkscape:cx="-4.9969866" inkscape:zoom="16" showgrid="true" guidetolerance="10" gridtolerance="10" objecttolerance="10" borderopacity="1" pagecolor="#ffffff" bordercolor="#666666" id="namedview8" inkscape:current-layer="svg2" inkscape:window-maximized="0" inkscape:window-y="160" inkscape:window-x="365" inkscape:object-nodes="true" inkscape:snap-page="true" inkscape:snap-bbox="false" inkscape:snap-global="true" inkscape:snap-grids="true" inkscape:window-height="826" inkscape:window-width="1461" inkscape:pageshadow="2" inkscape:pageopacity="0">
|
||||||
|
<inkscape:grid type="xygrid" id="grid4142"></inkscape:grid>
|
||||||
|
</sodipodi:namedview>
|
||||||
|
<path id="path5360" sodipodi:nodetypes="ccccc" inkscape:connector-curvature="0" fill="#F37D7F" fill-opacity="0.9961" d="M0,16
|
||||||
|
V8.969C6.406,4.281,9.938,4.25,16,9c0,5,0,7,0,7H0z"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.7 KiB |
38
addons/terrain_3d/icons/height_smooth.svg.import
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://chrbx4xnxyiel"
|
||||||
|
path="res://.godot/imported/height_smooth.svg-d8fc43572f5984eef64c886a49988c06.ctex"
|
||||||
|
metadata={
|
||||||
|
"has_editor_variant": true,
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://addons/terrain_3d/icons/height_smooth.svg"
|
||||||
|
dest_files=["res://.godot/imported/height_smooth.svg-d8fc43572f5984eef64c886a49988c06.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
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=1
|
||||||
|
svg/scale=1.0
|
||||||
|
editor/scale_with_editor_scale=true
|
||||||
|
editor/convert_colors_with_editor_theme=false
|
||||||
28
addons/terrain_3d/icons/height_sub.svg
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Generator: Adobe Illustrator 16.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||||
|
<svg version="1.1"
|
||||||
|
id="svg2" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" sodipodi:docname="icon_height_sub.svg" inkscape:version="1.2.2 (732a01da63, 2022-12-09)"
|
||||||
|
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="16px" height="16px"
|
||||||
|
viewBox="0 0 16 16" enable-background="new 0 0 16 16" xml:space="preserve">
|
||||||
|
<defs>
|
||||||
|
|
||||||
|
<inkscape:path-effect lpeversion="1" effect="spiro" is_visible="true" id="path-effect4977"></inkscape:path-effect>
|
||||||
|
<inkscape:path-effect lpeversion="1" effect="spiro" is_visible="true" id="path-effect4245"></inkscape:path-effect>
|
||||||
|
<inkscape:path-effect lpeversion="1" effect="spiro" is_visible="true" id="path-effect3156"></inkscape:path-effect>
|
||||||
|
<inkscape:path-effect lpeversion="1" effect="spiro" is_visible="true" id="path-effect2324"></inkscape:path-effect>
|
||||||
|
|
||||||
|
<inkscape:path-effect lpeversion="1" effect="powerstroke" is_visible="true" scale_width="1" miter_limit="4" linejoin_type="spiro" sort_points="true" not_jump="true" offset_points="0.76255776,0.35156248" id="path-effect2285" start_linecap_type="round" end_linecap_type="round" interpolator_type="CentripetalCatmullRom" interpolator_beta="0.75">
|
||||||
|
</inkscape:path-effect>
|
||||||
|
|
||||||
|
<inkscape:path-effect lpeversion="1" effect="simplify" is_visible="true" step="1" helper_size="0" smooth_angles="0" threshold="0.0028332064" steps="1" id="path-effect2283" simplify_individual_paths="false" simplify_just_coalesce="false">
|
||||||
|
</inkscape:path-effect>
|
||||||
|
</defs>
|
||||||
|
<sodipodi:namedview inkscape:cy="10.871767" inkscape:cx="2.7179417" inkscape:zoom="22.627417" showgrid="false" guidetolerance="10" gridtolerance="10" objecttolerance="10" borderopacity="1" pagecolor="#ffffff" bordercolor="#666666" id="namedview8" inkscape:current-layer="svg2" inkscape:window-maximized="1" inkscape:window-y="-8" inkscape:window-x="-8" inkscape:object-nodes="true" inkscape:snap-grids="false" inkscape:window-height="1009" inkscape:window-width="1920" inkscape:pageshadow="2" inkscape:pageopacity="0" inkscape:object-paths="false" inkscape:snap-smooth-nodes="false" inkscape:snap-to-guides="true" inkscape:pagecheckerboard="0" inkscape:showpageshadow="0" inkscape:deskcolor="#d1d1d1" showguides="false">
|
||||||
|
<inkscape:grid type="xygrid" id="grid4140"></inkscape:grid>
|
||||||
|
</sodipodi:namedview>
|
||||||
|
<path id="rect12437" fill="#FC7F7F" d="M0,0l14.842,0.004L16,0H0z M7,1.25v4H4l4,5.25l4-5.25H9v-4H7z M16,6.021L15.105,6.18
|
||||||
|
c-0.789,0.18-1.53,0.666-2.014,1.314c-0.566,0.76-0.866,1.914-1.49,3.139c-0.313,0.615-0.726,1.247-1.334,1.76
|
||||||
|
c-0.619,0.521-1.424,0.895-2.332,0.875c-0.859-0.019-1.613-0.384-2.195-0.881c-0.573-0.489-0.968-1.086-1.271-1.668
|
||||||
|
C3.865,9.561,3.57,8.469,3.045,7.73C2.521,6.993,1.683,6.447,0.797,6.264L0,6.1V16h16V6.021z"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 3.2 KiB |
38
addons/terrain_3d/icons/height_sub.svg.import
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://mo3hnbk3ffjs"
|
||||||
|
path="res://.godot/imported/height_sub.svg-1a14a9bb856f3db0faa02dba3c807b50.ctex"
|
||||||
|
metadata={
|
||||||
|
"has_editor_variant": true,
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://addons/terrain_3d/icons/height_sub.svg"
|
||||||
|
dest_files=["res://.godot/imported/height_sub.svg-1a14a9bb856f3db0faa02dba3c807b50.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
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=1
|
||||||
|
svg/scale=1.0
|
||||||
|
editor/scale_with_editor_scale=true
|
||||||
|
editor/convert_colors_with_editor_theme=false
|
||||||
10
addons/terrain_3d/icons/holes.svg
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Generator: Adobe Illustrator 16.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
|
||||||
|
<svg version="1.1" baseProfile="tiny"
|
||||||
|
id="svg2" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:svg="http://www.w3.org/2000/svg" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" sodipodi:docname="icon_map_add.svg" inkscape:version="1.2.2 (732a01da63, 2022-12-09)"
|
||||||
|
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="16px" height="16px"
|
||||||
|
viewBox="0 0 16 16" xml:space="preserve">
|
||||||
|
<path id="rect3461" fill="#FC7F7F" d="M0-0.045V16h16V-0.045H0z M8.542,2.167l0.833,3.125l2.906-1.729l-1.073,3.479l1.886,3.052
|
||||||
|
L9.875,9.833l0.75,3.979L8,11.188L4.406,13.25l1.635-3.583L2.063,9.469l2.646-1.76l-1.167-4.25l3,1.958L8.542,2.167z"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.1 KiB |
38
addons/terrain_3d/icons/holes.svg.import
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://bsmaxekrmnuy2"
|
||||||
|
path="res://.godot/imported/holes.svg-a7cb97bb50d7879cd274646e207b9213.ctex"
|
||||||
|
metadata={
|
||||||
|
"has_editor_variant": true,
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://addons/terrain_3d/icons/holes.svg"
|
||||||
|
dest_files=["res://.godot/imported/holes.svg-a7cb97bb50d7879cd274646e207b9213.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
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=1
|
||||||
|
svg/scale=1.0
|
||||||
|
editor/scale_with_editor_scale=true
|
||||||
|
editor/convert_colors_with_editor_theme=false
|
||||||
102
addons/terrain_3d/icons/layers.svg
Normal file
|
|
@ -0,0 +1,102 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
height="16"
|
||||||
|
viewBox="0 0 16 16"
|
||||||
|
width="16"
|
||||||
|
version="1.1"
|
||||||
|
id="svg37"
|
||||||
|
sodipodi:docname="icon_terrain_layer_material.svg"
|
||||||
|
inkscape:version="1.2.2 (732a01da63, 2022-12-09)"
|
||||||
|
xml:space="preserve"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"><defs
|
||||||
|
id="defs41"><linearGradient
|
||||||
|
id="linearGradient5133"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
x1="8.3533525"
|
||||||
|
x2="8.3533525"
|
||||||
|
y1="8.3028736"
|
||||||
|
y2="12.261972"><stop
|
||||||
|
offset="0.22192921"
|
||||||
|
stop-color="#5fb2ff"
|
||||||
|
id="stop5129"
|
||||||
|
style="stop-color:#774343;stop-opacity:1;" /><stop
|
||||||
|
offset="1"
|
||||||
|
stop-color="#a2d2ff"
|
||||||
|
id="stop5131"
|
||||||
|
style="stop-color:#874949;stop-opacity:0;" /></linearGradient><linearGradient
|
||||||
|
id="linearGradient5117"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
x1="8.3533525"
|
||||||
|
x2="8.3533525"
|
||||||
|
y1="8.3028736"
|
||||||
|
y2="12.261972"><stop
|
||||||
|
offset="0.33542365"
|
||||||
|
stop-color="#5fb2ff"
|
||||||
|
id="stop5113"
|
||||||
|
style="stop-color:#654444;stop-opacity:1;" /><stop
|
||||||
|
offset="1"
|
||||||
|
stop-color="#a2d2ff"
|
||||||
|
id="stop5115"
|
||||||
|
style="stop-color:#472323;stop-opacity:0;" /></linearGradient><linearGradient
|
||||||
|
id="linearGradient986"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
x1="8.3533525"
|
||||||
|
x2="8.3533525"
|
||||||
|
y1="8.3028736"
|
||||||
|
y2="12.261972"><stop
|
||||||
|
offset="0.33542365"
|
||||||
|
stop-color="#5fb2ff"
|
||||||
|
id="stop982"
|
||||||
|
style="stop-color:#ffa7a7;stop-opacity:1;" /><stop
|
||||||
|
offset="1"
|
||||||
|
stop-color="#a2d2ff"
|
||||||
|
id="stop984"
|
||||||
|
style="stop-color:#fc7f7f;stop-opacity:1;" /></linearGradient></defs><sodipodi:namedview
|
||||||
|
id="namedview39"
|
||||||
|
pagecolor="#505050"
|
||||||
|
bordercolor="#eeeeee"
|
||||||
|
borderopacity="1"
|
||||||
|
inkscape:showpageshadow="0"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:deskcolor="#505050"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:zoom="25.1875"
|
||||||
|
inkscape:cx="4.4665012"
|
||||||
|
inkscape:cy="9.9652606"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1009"
|
||||||
|
inkscape:window-x="-8"
|
||||||
|
inkscape:window-y="-8"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="g35" /><linearGradient
|
||||||
|
id="a"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
x1="8.3533525"
|
||||||
|
x2="8.3533525"
|
||||||
|
y1="8.3028736"
|
||||||
|
y2="12.261972"><stop
|
||||||
|
offset="0.22192921"
|
||||||
|
stop-color="#5fb2ff"
|
||||||
|
id="stop974"
|
||||||
|
style="stop-color:#fcaaaa;stop-opacity:1;" /><stop
|
||||||
|
offset="1"
|
||||||
|
stop-color="#a2d2ff"
|
||||||
|
id="stop28"
|
||||||
|
style="stop-color:#fc7f7f;stop-opacity:1;" /></linearGradient><g
|
||||||
|
transform="matrix(1.1122949,0,0,1.1122949,-0.89835899,-2.0106539)"
|
||||||
|
id="g35"><path
|
||||||
|
id="path31"
|
||||||
|
style="fill:#80ff45;fill-opacity:1"
|
||||||
|
d="M 2.99381 10.750674 L 1.0008162 11.605817 L 7.9999998 14.604966 L 14.999183 11.605817 L 13.00619 10.750674 L 7.9999998 12.896434 L 2.99381 10.750674 z " /><path
|
||||||
|
id="path1728"
|
||||||
|
style="fill:#ff4545;fill-opacity:1"
|
||||||
|
d="M 3.3713375 8.1114933 L 1.0008162 9.1264276 L 7.9999998 12.127332 L 14.999183 9.1264276 L 12.628662 8.1114933 L 7.9999998 10.095707 L 3.3713375 8.1114933 z " /><path
|
||||||
|
d="M 1,6.3889173 8,9.3889174 15,6.3889173 8,3.388917 Z"
|
||||||
|
fill="#a2d2ff"
|
||||||
|
fill-rule="evenodd"
|
||||||
|
id="path1730"
|
||||||
|
style="fill:#45d7ff;fill-opacity:1" /></g></svg>
|
||||||
|
After Width: | Height: | Size: 3.6 KiB |
38
addons/terrain_3d/icons/layers.svg.import
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://cs1la1mashf2e"
|
||||||
|
path="res://.godot/imported/layers.svg-4a679bb626c5179d3773f33e77e4a5e4.ctex"
|
||||||
|
metadata={
|
||||||
|
"has_editor_variant": true,
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://addons/terrain_3d/icons/layers.svg"
|
||||||
|
dest_files=["res://.godot/imported/layers.svg-4a679bb626c5179d3773f33e77e4a5e4.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
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=1
|
||||||
|
svg/scale=1.0
|
||||||
|
editor/scale_with_editor_scale=true
|
||||||
|
editor/convert_colors_with_editor_theme=false
|
||||||
40
addons/terrain_3d/icons/multimesh.svg
Normal file
|
|
@ -0,0 +1,40 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
height="16"
|
||||||
|
viewBox="0 0 16 16"
|
||||||
|
width="16"
|
||||||
|
version="1.1"
|
||||||
|
id="svg347"
|
||||||
|
sodipodi:docname="icon_multimesh.svg"
|
||||||
|
inkscape:version="1.2.2 (732a01da63, 2022-12-09)"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg">
|
||||||
|
<defs
|
||||||
|
id="defs351" />
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="namedview349"
|
||||||
|
pagecolor="#505050"
|
||||||
|
bordercolor="#eeeeee"
|
||||||
|
borderopacity="1"
|
||||||
|
inkscape:showpageshadow="0"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:deskcolor="#505050"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:zoom="9.1592425"
|
||||||
|
inkscape:cx="34.282311"
|
||||||
|
inkscape:cy="22.709301"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1009"
|
||||||
|
inkscape:window-x="-8"
|
||||||
|
inkscape:window-y="-8"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="svg347" />
|
||||||
|
<path
|
||||||
|
id="rect407"
|
||||||
|
style="fill:#fc7f7f;stroke-width:2;stroke-linecap:round;paint-order:stroke fill markers"
|
||||||
|
d="M 6.0979438,0.77152202 C 6.8581408,4.4407702 5.7042356,7.7264626 5.1336984,11.190982 4.5757087,8.429094 3.2699283,6.7549012 1.5824318,5.6359318 c 1.3386435,2.9076959 1.5327268,5.8153912 1.6595367,8.7230872 0.077524,1.556539 3.6893493,0.794317 8.7241545,-0.0772 -0.03898,-3.016292 1.350549,-4.3130746 2.624849,-7.6815876 C 13.134598,7.4583791 11.199788,9.072073 10.151276,11.663638 10.854206,8.7574539 11.968962,6.3154278 11.232097,2.8950308 10.675451,6.4379169 8.5380144,8.4925307 7.6805734,11.33356 7.3816525,7.5053532 8.4544829,3.7178929 6.0979438,0.77152202 Z"
|
||||||
|
sodipodi:nodetypes="cccccccccc" />
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.7 KiB |
38
addons/terrain_3d/icons/multimesh.svg.import
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://cjlcl5lf20ve0"
|
||||||
|
path="res://.godot/imported/multimesh.svg-5487b93b04ddbaae37b5d3e91f10750b.ctex"
|
||||||
|
metadata={
|
||||||
|
"has_editor_variant": true,
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://addons/terrain_3d/icons/multimesh.svg"
|
||||||
|
dest_files=["res://.godot/imported/multimesh.svg-5487b93b04ddbaae37b5d3e91f10750b.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
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=1
|
||||||
|
svg/scale=1.0
|
||||||
|
editor/scale_with_editor_scale=true
|
||||||
|
editor/convert_colors_with_editor_theme=false
|
||||||
42
addons/terrain_3d/icons/navigation.svg
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Generator: Adobe Illustrator 16.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||||
|
<svg version="1.1"
|
||||||
|
id="svg2" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:svg="http://www.w3.org/2000/svg" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" sodipodi:docname="icon_height_add.svg" inkscape:version="1.2.2 (732a01da63, 2022-12-09)"
|
||||||
|
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="16px" height="16px"
|
||||||
|
viewBox="0 0 16 16" enable-background="new 0 0 16 16" xml:space="preserve">
|
||||||
|
<g id="Compass_Rose">
|
||||||
|
<g>
|
||||||
|
<g>
|
||||||
|
<path fill="none" stroke="#FC7F7F" stroke-width="0.2239" d="M6.345,5.199c0.211-0.125,0.434-0.226,0.671-0.301
|
||||||
|
C7.326,4.8,7.658,4.747,8,4.747c0.604,0,1.171,0.164,1.655,0.452L7.966,0.34L6.345,5.199z"/>
|
||||||
|
<path fill="#FC7F7F" stroke="#FC7F7F" stroke-width="0.2239" d="M8,4.747c0.604,0,1.171,0.164,1.655,0.452L7.966,0.34v4.408
|
||||||
|
L8,4.747z"/>
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<path fill="none" stroke="#FC7F7F" stroke-width="0.2239" d="M5.199,9.655C5.075,9.447,4.975,9.221,4.898,8.984
|
||||||
|
C4.801,8.674,4.748,8.342,4.748,8c0-0.605,0.164-1.171,0.452-1.656L0.34,8.034L5.199,9.655z"/>
|
||||||
|
<path fill="#FC7F7F" stroke="#FC7F7F" stroke-width="0.2239" d="M4.748,8c0-0.605,0.164-1.171,0.452-1.656L0.34,8.034h4.408
|
||||||
|
L4.748,8z"/>
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<path fill="none" stroke="#FC7F7F" stroke-width="0.2239" d="M9.655,10.801c-0.208,0.125-0.435,0.226-0.671,0.3
|
||||||
|
c-0.311,0.099-0.642,0.15-0.984,0.15c-0.605,0-1.17-0.163-1.655-0.45l1.689,4.859L9.655,10.801z"/>
|
||||||
|
<path fill="#FC7F7F" stroke="#FC7F7F" stroke-width="0.2239" d="M8,11.251c-0.605,0-1.17-0.163-1.655-0.45l1.689,4.859v-4.409H8z
|
||||||
|
"/>
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<path fill="none" stroke="#FC7F7F" stroke-width="0.2239" d="M10.801,6.345c0.125,0.21,0.226,0.435,0.3,0.67
|
||||||
|
C11.2,7.326,11.255,7.657,11.255,8c0,0.603-0.167,1.17-0.454,1.655l4.859-1.689L10.801,6.345z"/>
|
||||||
|
<path fill="#FC7F7F" stroke="#FC7F7F" stroke-width="0.2239" d="M11.255,8c0,0.603-0.167,1.17-0.454,1.655l4.859-1.689h-4.409
|
||||||
|
L11.255,8z"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<path fill="none" stroke="#FC7F7F" stroke-width="0.2239" d="M9.655,5.199c0.957,0.566,1.598,1.61,1.598,2.801
|
||||||
|
c0,1.795-1.457,3.25-3.253,3.25c-1.796,0-3.252-1.455-3.252-3.25c0-1.193,0.641-2.236,1.597-2.801
|
||||||
|
c0.211-0.125,0.434-0.226,0.671-0.301C7.326,4.8,7.658,4.747,8,4.747C8.604,4.747,9.171,4.911,9.655,5.199z"/>
|
||||||
|
<path display="none" fill="#FC7F7F" stroke="#FC7F7F" stroke-width="0.2239" d="M8.373,7.369C8.588,7.497,8.732,7.731,8.732,8
|
||||||
|
c0,0.405-0.328,0.732-0.732,0.732C7.596,8.731,7.268,8.404,7.268,8c0-0.268,0.144-0.503,0.36-0.63
|
||||||
|
c0.047-0.028,0.098-0.051,0.15-0.067C7.849,7.279,7.923,7.268,8,7.268C8.136,7.268,8.264,7.304,8.373,7.369z"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 2.9 KiB |
38
addons/terrain_3d/icons/navigation.svg.import
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://f3po5pogkv2b"
|
||||||
|
path="res://.godot/imported/navigation.svg-1e4cf210c589be8d2911c522d4a17d78.ctex"
|
||||||
|
metadata={
|
||||||
|
"has_editor_variant": true,
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://addons/terrain_3d/icons/navigation.svg"
|
||||||
|
dest_files=["res://.godot/imported/navigation.svg-1e4cf210c589be8d2911c522d4a17d78.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
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=1
|
||||||
|
svg/scale=1.0
|
||||||
|
editor/scale_with_editor_scale=true
|
||||||
|
editor/convert_colors_with_editor_theme=false
|
||||||
40
addons/terrain_3d/icons/picker.svg
Normal file
|
|
@ -0,0 +1,40 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
height="16"
|
||||||
|
viewBox="0 0 16 16"
|
||||||
|
width="16"
|
||||||
|
version="1.1"
|
||||||
|
id="svg1109"
|
||||||
|
sodipodi:docname="icon_picker.svg"
|
||||||
|
inkscape:version="1.2.2 (732a01da63, 2022-12-09)"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg">
|
||||||
|
<defs
|
||||||
|
id="defs1113" />
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="namedview1111"
|
||||||
|
pagecolor="#505050"
|
||||||
|
bordercolor="#eeeeee"
|
||||||
|
borderopacity="1"
|
||||||
|
inkscape:showpageshadow="0"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:deskcolor="#505050"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:zoom="50.375"
|
||||||
|
inkscape:cx="7.9900744"
|
||||||
|
inkscape:cy="8"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1009"
|
||||||
|
inkscape:window-x="-8"
|
||||||
|
inkscape:window-y="-8"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="svg1109" />
|
||||||
|
<path
|
||||||
|
d="M6 5H5v2h1v5a2 2 0 0 0 1 1.728V15h2v-1.27A2 2 0 0 0 10 12V7h1V5h-1V3a1 1 0 0 0-4 0zm1 2h2v5a1 1 0 0 1-2 0z"
|
||||||
|
fill="#8eef97"
|
||||||
|
id="path1107"
|
||||||
|
style="fill:#ffffff;fill-opacity:1" />
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.2 KiB |
38
addons/terrain_3d/icons/picker.svg.import
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://c11ip32w7ln4v"
|
||||||
|
path="res://.godot/imported/picker.svg-0ed48f8d7e66014d2aac4b303bc65df6.ctex"
|
||||||
|
metadata={
|
||||||
|
"has_editor_variant": true,
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://addons/terrain_3d/icons/picker.svg"
|
||||||
|
dest_files=["res://.godot/imported/picker.svg-0ed48f8d7e66014d2aac4b303bc65df6.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
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=1
|
||||||
|
svg/scale=1.0
|
||||||
|
editor/scale_with_editor_scale=true
|
||||||
|
editor/convert_colors_with_editor_theme=false
|
||||||
43
addons/terrain_3d/icons/picker_checked.svg
Normal file
|
|
@ -0,0 +1,43 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
height="16"
|
||||||
|
viewBox="0 0 16 16"
|
||||||
|
width="16"
|
||||||
|
version="1.1"
|
||||||
|
id="svg1109"
|
||||||
|
sodipodi:docname="icon_picker_checked.svg"
|
||||||
|
inkscape:version="1.3 (0e150ed6c4, 2023-07-21)"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg">
|
||||||
|
<defs
|
||||||
|
id="defs1113" />
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="namedview1111"
|
||||||
|
pagecolor="#505050"
|
||||||
|
bordercolor="#eeeeee"
|
||||||
|
borderopacity="1"
|
||||||
|
inkscape:showpageshadow="0"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:deskcolor="#505050"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:zoom="50.375"
|
||||||
|
inkscape:cx="7.9602978"
|
||||||
|
inkscape:cy="7.9702233"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1011"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="32"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="svg1109" />
|
||||||
|
<path
|
||||||
|
d="M 13.586344,7.223 15.000406,8.6370625 8.637125,15.000344 5.809,12.172219 7.2230625,10.758156 8.637125,12.172219 Z"
|
||||||
|
style="display:inline;fill:#8eef97"
|
||||||
|
id="path2" />
|
||||||
|
<path
|
||||||
|
id="path1107"
|
||||||
|
style="fill:#ffffff;fill-opacity:1"
|
||||||
|
d="M 7.7597656 1.0136719 A 2 2 0 0 0 6 3 L 6 5 L 5 5 L 5 7 L 6 7 L 6 10.566406 L 7 9.5664062 L 7 7 L 9 7 L 9 10.394531 L 10 9.3945312 L 10 7 L 11 7 L 11 5 L 10 5 L 10 3 A 2 2 0 0 0 7.7597656 1.0136719 z M 7 14.777344 L 7 15 L 7.2226562 15 L 7 14.777344 z " />
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.5 KiB |
38
addons/terrain_3d/icons/picker_checked.svg.import
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://bg8x6o32ggt88"
|
||||||
|
path="res://.godot/imported/picker_checked.svg-81f35b6ae38bccc8aa9e7ae22b530168.ctex"
|
||||||
|
metadata={
|
||||||
|
"has_editor_variant": true,
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://addons/terrain_3d/icons/picker_checked.svg"
|
||||||
|
dest_files=["res://.godot/imported/picker_checked.svg-81f35b6ae38bccc8aa9e7ae22b530168.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
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=1
|
||||||
|
svg/scale=1.0
|
||||||
|
editor/scale_with_editor_scale=true
|
||||||
|
editor/convert_colors_with_editor_theme=false
|
||||||
95
addons/terrain_3d/icons/region_add.svg
Normal file
|
|
@ -0,0 +1,95 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
width="16"
|
||||||
|
height="16"
|
||||||
|
version="1.1"
|
||||||
|
viewBox="0 0 16 16"
|
||||||
|
id="svg2"
|
||||||
|
inkscape:version="1.2.2 (732a01da63, 2022-12-09)"
|
||||||
|
sodipodi:docname="icon_map_add.svg"
|
||||||
|
xml:space="preserve"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"><metadata
|
||||||
|
id="metadata12"><rdf:RDF><cc:Work
|
||||||
|
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /></cc:Work></rdf:RDF></metadata><defs
|
||||||
|
id="defs10"><linearGradient
|
||||||
|
id="linearGradient5133"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
x1="8.3533525"
|
||||||
|
x2="8.3533525"
|
||||||
|
y1="8.3028736"
|
||||||
|
y2="12.261972"><stop
|
||||||
|
offset="0.22192921"
|
||||||
|
stop-color="#5fb2ff"
|
||||||
|
id="stop5129"
|
||||||
|
style="stop-color:#774343;stop-opacity:1;" /><stop
|
||||||
|
offset="1"
|
||||||
|
stop-color="#a2d2ff"
|
||||||
|
id="stop5131"
|
||||||
|
style="stop-color:#874949;stop-opacity:0;" /></linearGradient><linearGradient
|
||||||
|
id="linearGradient5117"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
x1="8.3533525"
|
||||||
|
x2="8.3533525"
|
||||||
|
y1="8.3028736"
|
||||||
|
y2="12.261972"><stop
|
||||||
|
offset="0.33542365"
|
||||||
|
stop-color="#5fb2ff"
|
||||||
|
id="stop5113"
|
||||||
|
style="stop-color:#654444;stop-opacity:1;" /><stop
|
||||||
|
offset="1"
|
||||||
|
stop-color="#a2d2ff"
|
||||||
|
id="stop5115"
|
||||||
|
style="stop-color:#472323;stop-opacity:0;" /></linearGradient><linearGradient
|
||||||
|
id="linearGradient986"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
x1="8.3533525"
|
||||||
|
x2="8.3533525"
|
||||||
|
y1="8.3028736"
|
||||||
|
y2="12.261972"><stop
|
||||||
|
offset="0.33542365"
|
||||||
|
stop-color="#5fb2ff"
|
||||||
|
id="stop982"
|
||||||
|
style="stop-color:#ffa7a7;stop-opacity:1;" /><stop
|
||||||
|
offset="1"
|
||||||
|
stop-color="#a2d2ff"
|
||||||
|
id="stop984"
|
||||||
|
style="stop-color:#fc7f7f;stop-opacity:1;" /></linearGradient></defs><sodipodi:namedview
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1"
|
||||||
|
objecttolerance="10"
|
||||||
|
gridtolerance="10"
|
||||||
|
guidetolerance="10"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1009"
|
||||||
|
id="namedview8"
|
||||||
|
showgrid="true"
|
||||||
|
inkscape:zoom="32.000001"
|
||||||
|
inkscape:cx="5.4218748"
|
||||||
|
inkscape:cy="8.6249996"
|
||||||
|
inkscape:window-x="-8"
|
||||||
|
inkscape:window-y="-8"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="svg2"
|
||||||
|
inkscape:object-paths="false"
|
||||||
|
inkscape:snap-smooth-nodes="false"
|
||||||
|
inkscape:object-nodes="true"
|
||||||
|
inkscape:snap-grids="false"
|
||||||
|
inkscape:snap-to-guides="true"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:showpageshadow="0"
|
||||||
|
inkscape:deskcolor="#d1d1d1"><inkscape:grid
|
||||||
|
type="xygrid"
|
||||||
|
id="grid4140" /></sodipodi:namedview><path
|
||||||
|
id="rect3461"
|
||||||
|
style="fill:#fc7f7f;stroke-width:1.92851;stroke-linecap:round;paint-order:stroke fill markers"
|
||||||
|
d="M 0 -0.044921875 L 0 16 L 16 16 L 16 -0.044921875 L 0 -0.044921875 z M 6.8925781 2.953125 L 9.203125 2.953125 L 9.203125 7 L 13.246094 7 L 13.246094 9.3105469 L 9.203125 9.3105469 L 9.203125 13.353516 L 6.8925781 13.353516 L 6.8925781 9.3105469 L 2.8496094 9.3105469 L 2.8496094 7 L 6.8925781 7 L 6.8925781 2.953125 z " /></svg>
|
||||||
|
After Width: | Height: | Size: 3.6 KiB |
38
addons/terrain_3d/icons/region_add.svg.import
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://c0tn453fsckv5"
|
||||||
|
path="res://.godot/imported/region_add.svg-a05dc161a452dd3e024f9835a737d9f0.ctex"
|
||||||
|
metadata={
|
||||||
|
"has_editor_variant": true,
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://addons/terrain_3d/icons/region_add.svg"
|
||||||
|
dest_files=["res://.godot/imported/region_add.svg-a05dc161a452dd3e024f9835a737d9f0.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
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=1
|
||||||
|
svg/scale=1.0
|
||||||
|
editor/scale_with_editor_scale=true
|
||||||
|
editor/convert_colors_with_editor_theme=false
|
||||||
102
addons/terrain_3d/icons/region_remove.svg
Normal file
|
|
@ -0,0 +1,102 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
width="16"
|
||||||
|
height="16"
|
||||||
|
version="1.1"
|
||||||
|
viewBox="0 0 16 16"
|
||||||
|
id="svg2"
|
||||||
|
inkscape:version="1.2.2 (732a01da63, 2022-12-09)"
|
||||||
|
sodipodi:docname="icon_map_remove.svg"
|
||||||
|
xml:space="preserve"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"><metadata
|
||||||
|
id="metadata12"><rdf:RDF><cc:Work
|
||||||
|
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /></cc:Work></rdf:RDF></metadata><defs
|
||||||
|
id="defs10"><linearGradient
|
||||||
|
id="linearGradient5133"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
x1="8.3533525"
|
||||||
|
x2="8.3533525"
|
||||||
|
y1="8.3028736"
|
||||||
|
y2="12.261972"><stop
|
||||||
|
offset="0.22192921"
|
||||||
|
stop-color="#5fb2ff"
|
||||||
|
id="stop5129"
|
||||||
|
style="stop-color:#774343;stop-opacity:1;" /><stop
|
||||||
|
offset="1"
|
||||||
|
stop-color="#a2d2ff"
|
||||||
|
id="stop5131"
|
||||||
|
style="stop-color:#874949;stop-opacity:0;" /></linearGradient><linearGradient
|
||||||
|
id="linearGradient5117"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
x1="8.3533525"
|
||||||
|
x2="8.3533525"
|
||||||
|
y1="8.3028736"
|
||||||
|
y2="12.261972"><stop
|
||||||
|
offset="0.33542365"
|
||||||
|
stop-color="#5fb2ff"
|
||||||
|
id="stop5113"
|
||||||
|
style="stop-color:#654444;stop-opacity:1;" /><stop
|
||||||
|
offset="1"
|
||||||
|
stop-color="#a2d2ff"
|
||||||
|
id="stop5115"
|
||||||
|
style="stop-color:#472323;stop-opacity:0;" /></linearGradient><linearGradient
|
||||||
|
id="linearGradient986"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
x1="8.3533525"
|
||||||
|
x2="8.3533525"
|
||||||
|
y1="8.3028736"
|
||||||
|
y2="12.261972"><stop
|
||||||
|
offset="0.33542365"
|
||||||
|
stop-color="#5fb2ff"
|
||||||
|
id="stop982"
|
||||||
|
style="stop-color:#ffa7a7;stop-opacity:1;" /><stop
|
||||||
|
offset="1"
|
||||||
|
stop-color="#a2d2ff"
|
||||||
|
id="stop984"
|
||||||
|
style="stop-color:#fc7f7f;stop-opacity:1;" /></linearGradient></defs><sodipodi:namedview
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1"
|
||||||
|
objecttolerance="10"
|
||||||
|
gridtolerance="10"
|
||||||
|
guidetolerance="10"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1009"
|
||||||
|
id="namedview8"
|
||||||
|
showgrid="true"
|
||||||
|
inkscape:zoom="16.000001"
|
||||||
|
inkscape:cx="0.46874998"
|
||||||
|
inkscape:cy="12.437499"
|
||||||
|
inkscape:window-x="-8"
|
||||||
|
inkscape:window-y="-8"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="svg2"
|
||||||
|
inkscape:object-paths="false"
|
||||||
|
inkscape:snap-smooth-nodes="false"
|
||||||
|
inkscape:object-nodes="true"
|
||||||
|
inkscape:snap-grids="false"
|
||||||
|
inkscape:snap-to-guides="true"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:showpageshadow="0"
|
||||||
|
inkscape:deskcolor="#d1d1d1"><inkscape:grid
|
||||||
|
type="xygrid"
|
||||||
|
id="grid4140" /></sodipodi:namedview><path
|
||||||
|
id="rect913"
|
||||||
|
style="fill:#fc7f7f;fill-opacity:1;stroke-width:3.17302;stroke-linecap:round;paint-order:stroke fill markers"
|
||||||
|
d="M 4.2625219,7.3135371 V 8.9961093 H 11.832548 V 7.3135371 Z"
|
||||||
|
sodipodi:nodetypes="ccccc" /><rect
|
||||||
|
style="fill:none;fill-opacity:1;stroke:#fc7f7f;stroke-width:1.7;stroke-linecap:round;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers"
|
||||||
|
id="rect3461"
|
||||||
|
width="14.123877"
|
||||||
|
height="14.123877"
|
||||||
|
x="0.98140109"
|
||||||
|
y="0.98140109" /></svg>
|
||||||
|
After Width: | Height: | Size: 3.6 KiB |
38
addons/terrain_3d/icons/region_remove.svg.import
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://cbpo5eamf3bx2"
|
||||||
|
path="res://.godot/imported/region_remove.svg-5710e8aeb34f1eaa06e637634f4a7d16.ctex"
|
||||||
|
metadata={
|
||||||
|
"has_editor_variant": true,
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://addons/terrain_3d/icons/region_remove.svg"
|
||||||
|
dest_files=["res://.godot/imported/region_remove.svg-5710e8aeb34f1eaa06e637634f4a7d16.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
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=1
|
||||||
|
svg/scale=1.0
|
||||||
|
editor/scale_with_editor_scale=true
|
||||||
|
editor/convert_colors_with_editor_theme=false
|
||||||
153
addons/terrain_3d/icons/terrain3d.svg
Normal file
|
|
@ -0,0 +1,153 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
height="16"
|
||||||
|
viewBox="0 0 16 16"
|
||||||
|
width="16"
|
||||||
|
version="1.1"
|
||||||
|
id="svg37"
|
||||||
|
sodipodi:docname="icon_terrain.svg"
|
||||||
|
inkscape:version="1.2.2 (732a01da63, 2022-12-09)"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg">
|
||||||
|
<defs
|
||||||
|
id="defs41">
|
||||||
|
<linearGradient
|
||||||
|
id="linearGradient5133"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
x1="8.3533525"
|
||||||
|
x2="8.3533525"
|
||||||
|
y1="8.3028736"
|
||||||
|
y2="12.261972">
|
||||||
|
<stop
|
||||||
|
offset="0.22192921"
|
||||||
|
stop-color="#5fb2ff"
|
||||||
|
id="stop5129"
|
||||||
|
style="stop-color:#774343;stop-opacity:1;" />
|
||||||
|
<stop
|
||||||
|
offset="1"
|
||||||
|
stop-color="#a2d2ff"
|
||||||
|
id="stop5131"
|
||||||
|
style="stop-color:#874949;stop-opacity:0;" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
id="linearGradient5117"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
x1="8.3533525"
|
||||||
|
x2="8.3533525"
|
||||||
|
y1="8.3028736"
|
||||||
|
y2="12.261972">
|
||||||
|
<stop
|
||||||
|
offset="0.33542365"
|
||||||
|
stop-color="#5fb2ff"
|
||||||
|
id="stop5113"
|
||||||
|
style="stop-color:#654444;stop-opacity:1;" />
|
||||||
|
<stop
|
||||||
|
offset="1"
|
||||||
|
stop-color="#a2d2ff"
|
||||||
|
id="stop5115"
|
||||||
|
style="stop-color:#472323;stop-opacity:0;" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
id="linearGradient986"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
x1="8.3533525"
|
||||||
|
x2="8.3533525"
|
||||||
|
y1="8.3028736"
|
||||||
|
y2="12.261972">
|
||||||
|
<stop
|
||||||
|
offset="0.33542365"
|
||||||
|
stop-color="#5fb2ff"
|
||||||
|
id="stop982"
|
||||||
|
style="stop-color:#ffa7a7;stop-opacity:1;" />
|
||||||
|
<stop
|
||||||
|
offset="1"
|
||||||
|
stop-color="#a2d2ff"
|
||||||
|
id="stop984"
|
||||||
|
style="stop-color:#fc7f7f;stop-opacity:1;" />
|
||||||
|
</linearGradient>
|
||||||
|
<radialGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#a"
|
||||||
|
id="radialGradient988"
|
||||||
|
cx="9.2619724"
|
||||||
|
cy="4.4711504"
|
||||||
|
fx="9.2619724"
|
||||||
|
fy="4.4711504"
|
||||||
|
r="5.6057472"
|
||||||
|
gradientTransform="matrix(1.117063,1.0590527,-0.47291808,0.66317457,1.0302534,-7.8483143)"
|
||||||
|
gradientUnits="userSpaceOnUse" />
|
||||||
|
<radialGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient986"
|
||||||
|
id="radialGradient990"
|
||||||
|
cx="4.8324485"
|
||||||
|
cy="7.3107424"
|
||||||
|
fx="4.8324485"
|
||||||
|
fy="7.3107424"
|
||||||
|
r="3.2206185"
|
||||||
|
gradientTransform="matrix(1.4231892,0.94879179,-0.4953986,0.98793485,1.5766917,-4.6677634)"
|
||||||
|
gradientUnits="userSpaceOnUse" />
|
||||||
|
</defs>
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="namedview39"
|
||||||
|
pagecolor="#505050"
|
||||||
|
bordercolor="#eeeeee"
|
||||||
|
borderopacity="1"
|
||||||
|
inkscape:showpageshadow="0"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:deskcolor="#505050"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:zoom="12.59375"
|
||||||
|
inkscape:cx="-16.555831"
|
||||||
|
inkscape:cy="15.722084"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1009"
|
||||||
|
inkscape:window-x="-8"
|
||||||
|
inkscape:window-y="-8"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="g35" />
|
||||||
|
<linearGradient
|
||||||
|
id="a"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
x1="8.3533525"
|
||||||
|
x2="8.3533525"
|
||||||
|
y1="8.3028736"
|
||||||
|
y2="12.261972">
|
||||||
|
<stop
|
||||||
|
offset="0.22192921"
|
||||||
|
stop-color="#5fb2ff"
|
||||||
|
id="stop974"
|
||||||
|
style="stop-color:#fcaaaa;stop-opacity:1;" />
|
||||||
|
<stop
|
||||||
|
offset="1"
|
||||||
|
stop-color="#a2d2ff"
|
||||||
|
id="stop28"
|
||||||
|
style="stop-color:#fc7f7f;stop-opacity:1;" />
|
||||||
|
</linearGradient>
|
||||||
|
<g
|
||||||
|
transform="matrix(1.1122949,0,0,1.1122949,-0.89835899,-2.0106539)"
|
||||||
|
id="g35">
|
||||||
|
<path
|
||||||
|
d="m 1,11.605747 7,3 7,-3 -7,-3.0000001 z"
|
||||||
|
fill="#a2d2ff"
|
||||||
|
fill-rule="evenodd"
|
||||||
|
id="path31"
|
||||||
|
style="fill:#fc7f7f;fill-opacity:1" />
|
||||||
|
<path
|
||||||
|
d="m 2.3437741,11.365789 c 1,-1.15303 1.1365135,-4.7329648 3.1357756,-4.6703265 1.1608823,0.036371 1.3735517,-4.3501566 3.1261972,-3.2262774 2.5001301,1.6032017 2.8421471,2.9505808 3.5552681,3.8083147 0.863429,1.0385227 0.749621,2.3889247 1.394253,4.0882892 -1.264298,0.828986 -7.0224636,3.616739 -11.2114939,0 z"
|
||||||
|
fill="url(#a)"
|
||||||
|
id="path33"
|
||||||
|
style="fill:url(#radialGradient988);fill-opacity:1;stroke-width:1.07379"
|
||||||
|
sodipodi:nodetypes="cssscc" />
|
||||||
|
<path
|
||||||
|
d="m 2.3437741,11.365789 c 1,-1.15303 1.1869924,-5.2859004 3.1862545,-5.2232621 C 9.7026725,10.196693 7.7762139,9.5750642 9.1776446,13.11518 6.2850732,13.13069 6.266927,12.07401 2.3437741,11.365789 Z"
|
||||||
|
fill="url(#a)"
|
||||||
|
id="path978"
|
||||||
|
style="fill:url(#radialGradient990);fill-opacity:1;stroke-width:1.07379"
|
||||||
|
sodipodi:nodetypes="cccc" />
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 4.7 KiB |
38
addons/terrain_3d/icons/terrain3d.svg.import
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://bnsydn4jkyeyn"
|
||||||
|
path="res://.godot/imported/terrain3d.svg-eb45756f1a003759fda81eaa1db10769.ctex"
|
||||||
|
metadata={
|
||||||
|
"has_editor_variant": true,
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://addons/terrain_3d/icons/terrain3d.svg"
|
||||||
|
dest_files=["res://.godot/imported/terrain3d.svg-eb45756f1a003759fda81eaa1db10769.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
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=1
|
||||||
|
svg/scale=1.0
|
||||||
|
editor/scale_with_editor_scale=true
|
||||||
|
editor/convert_colors_with_editor_theme=false
|
||||||
151
addons/terrain_3d/icons/texture_paint.svg
Normal file
|
|
@ -0,0 +1,151 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
width="16"
|
||||||
|
height="16"
|
||||||
|
version="1.1"
|
||||||
|
viewBox="0 0 16 16"
|
||||||
|
id="svg2"
|
||||||
|
inkscape:version="1.2.2 (732a01da63, 2022-12-09)"
|
||||||
|
sodipodi:docname="icon_brush.svg"
|
||||||
|
xml:space="preserve"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"><metadata
|
||||||
|
id="metadata12"><rdf:RDF><cc:Work
|
||||||
|
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /></cc:Work></rdf:RDF></metadata><defs
|
||||||
|
id="defs10"><inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect6172"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" /><inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect5927"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" /><inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect5921"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" /><inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect5163"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" /><inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect4431"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" /><inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect4425"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" /><inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect4419"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" /><inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect4413"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" /><inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect4407"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" /><inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect4401"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" /><inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect4395"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" /><inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect4389"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" /><inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect2931"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" /><inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect2925"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" /><inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect3156"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" /><inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect4245"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" /><inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect4977"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" /><inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect3156-0"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" /><inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect3156-3"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" /></defs><sodipodi:namedview
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1"
|
||||||
|
objecttolerance="10"
|
||||||
|
gridtolerance="10"
|
||||||
|
guidetolerance="10"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1009"
|
||||||
|
id="namedview8"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:zoom="22.627418"
|
||||||
|
inkscape:cx="-1.5246989"
|
||||||
|
inkscape:cy="7.6455917"
|
||||||
|
inkscape:window-x="-8"
|
||||||
|
inkscape:window-y="-8"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="svg2"
|
||||||
|
inkscape:object-paths="false"
|
||||||
|
inkscape:snap-smooth-nodes="false"
|
||||||
|
inkscape:object-nodes="true"
|
||||||
|
inkscape:snap-grids="false"
|
||||||
|
inkscape:snap-to-guides="true"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:showpageshadow="0"
|
||||||
|
inkscape:deskcolor="#d1d1d1"><inkscape:grid
|
||||||
|
type="xygrid"
|
||||||
|
id="grid4140" /></sodipodi:namedview><g
|
||||||
|
id="g5578"
|
||||||
|
transform="translate(-27.379572,-6.4315344)"><path
|
||||||
|
fill="none"
|
||||||
|
d="M 0,0 H 24 V 24 H 0 Z"
|
||||||
|
id="path5566" /></g><path
|
||||||
|
style="color:#000000;fill:#fc7f7f;stroke-width:1.04669;stroke-linecap:round;-inkscape-stroke:none;paint-order:stroke fill markers"
|
||||||
|
d="M 0,0 V 0.90647294 5.8222656 H 16 V 0 Z"
|
||||||
|
id="rect5998"
|
||||||
|
sodipodi:nodetypes="cccccc" /><path
|
||||||
|
style="fill:none;stroke:#fc7f7f;stroke-width:1.7;stroke-linecap:butt;stroke-linejoin:miter;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
d="m 0.89644665,6.6249995 7.404e-4,2.0000026 7.34802865,-0.0028 -0.016663,7.0027939"
|
||||||
|
id="path6170"
|
||||||
|
inkscape:path-effect="#path-effect6172"
|
||||||
|
inkscape:original-d="m 0.89644665,6.6249995 7.404e-4,2.0000026 7.34802865,-0.0028 -0.016663,7.0027939"
|
||||||
|
sodipodi:nodetypes="cccc" /><rect
|
||||||
|
style="fill:none;stroke:#fc7f7f;stroke-width:1.44866;stroke-linecap:round;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers"
|
||||||
|
id="rect7902"
|
||||||
|
width="2.1763401"
|
||||||
|
height="3.3013401"
|
||||||
|
x="7.2028828"
|
||||||
|
y="11.911829" /><path
|
||||||
|
id="path12210"
|
||||||
|
style="fill:#fc7f7f;stroke:none;stroke-width:1.8;stroke-linecap:round;paint-order:stroke fill markers;fill-opacity:1"
|
||||||
|
d="m 15.21067,10.713897 c 0.280041,1.208799 -0.309734,2.27275 -1.860725,2.405567 -1.152356,0.09868 -2.35276,-1.290185 -1.83455,-2.380469 l 1.827424,-3.8447978 1.867455,3.8158258"
|
||||||
|
sodipodi:nodetypes="csscc" /></svg>
|
||||||
|
After Width: | Height: | Size: 5.4 KiB |
38
addons/terrain_3d/icons/texture_paint.svg.import
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://duo8valena3a2"
|
||||||
|
path="res://.godot/imported/texture_paint.svg-72da4fd2096377e625a8fe09cdacb0e4.ctex"
|
||||||
|
metadata={
|
||||||
|
"has_editor_variant": true,
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://addons/terrain_3d/icons/texture_paint.svg"
|
||||||
|
dest_files=["res://.godot/imported/texture_paint.svg-72da4fd2096377e625a8fe09cdacb0e4.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
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=1
|
||||||
|
svg/scale=1.0
|
||||||
|
editor/scale_with_editor_scale=true
|
||||||
|
editor/convert_colors_with_editor_theme=false
|
||||||
165
addons/terrain_3d/icons/texture_spray.svg
Normal file
|
|
@ -0,0 +1,165 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
width="16"
|
||||||
|
height="16"
|
||||||
|
version="1.1"
|
||||||
|
viewBox="0 0 16 16"
|
||||||
|
id="svg2"
|
||||||
|
inkscape:version="1.2.2 (732a01da63, 2022-12-09)"
|
||||||
|
sodipodi:docname="icon_spray.svg"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||||
|
<metadata
|
||||||
|
id="metadata12">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<defs
|
||||||
|
id="defs10">
|
||||||
|
<inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect5927"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" />
|
||||||
|
<inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect5921"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" />
|
||||||
|
<inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect5163"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" />
|
||||||
|
<inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect4431"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" />
|
||||||
|
<inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect4425"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" />
|
||||||
|
<inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect4419"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" />
|
||||||
|
<inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect4413"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" />
|
||||||
|
<inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect4407"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" />
|
||||||
|
<inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect4401"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" />
|
||||||
|
<inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect4395"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" />
|
||||||
|
<inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect4389"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" />
|
||||||
|
<inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect2931"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" />
|
||||||
|
<inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect2925"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" />
|
||||||
|
<inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect3156"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" />
|
||||||
|
<inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect4245"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" />
|
||||||
|
<inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect4977"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" />
|
||||||
|
<inkscape:path-effect
|
||||||
|
effect="spiro"
|
||||||
|
id="path-effect3156-0"
|
||||||
|
is_visible="true"
|
||||||
|
lpeversion="1" />
|
||||||
|
</defs>
|
||||||
|
<sodipodi:namedview
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1"
|
||||||
|
objecttolerance="10"
|
||||||
|
gridtolerance="10"
|
||||||
|
guidetolerance="10"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:window-width="1350"
|
||||||
|
inkscape:window-height="1032"
|
||||||
|
id="namedview8"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:zoom="16.000001"
|
||||||
|
inkscape:cx="6.7187497"
|
||||||
|
inkscape:cy="8.2187496"
|
||||||
|
inkscape:window-x="416"
|
||||||
|
inkscape:window-y="114"
|
||||||
|
inkscape:window-maximized="0"
|
||||||
|
inkscape:current-layer="svg2"
|
||||||
|
inkscape:object-paths="false"
|
||||||
|
inkscape:snap-smooth-nodes="false"
|
||||||
|
inkscape:object-nodes="true"
|
||||||
|
inkscape:snap-grids="false"
|
||||||
|
inkscape:snap-to-guides="true"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:showpageshadow="0"
|
||||||
|
inkscape:deskcolor="#d1d1d1">
|
||||||
|
<inkscape:grid
|
||||||
|
type="xygrid"
|
||||||
|
id="grid4140" />
|
||||||
|
</sodipodi:namedview>
|
||||||
|
<path
|
||||||
|
style="color:#000000;fill:#fc7f7f;stroke-width:0.984497;stroke-linecap:round;-inkscape-stroke:none;paint-order:stroke fill markers"
|
||||||
|
d="m 9.6035156,4.1079549 c -2.2773437,-1.7819601 -4.5546875,-1.7819611 -6.8320312,0 V 16 h 6.8320312 z"
|
||||||
|
id="rect5998"
|
||||||
|
sodipodi:nodetypes="ccccc" />
|
||||||
|
<rect
|
||||||
|
style="fill:#fc7f7f;stroke-width:1.98831;stroke-linecap:round;paint-order:stroke fill markers"
|
||||||
|
id="rect18851"
|
||||||
|
width="2"
|
||||||
|
height="3.5053618"
|
||||||
|
x="5.1518083"
|
||||||
|
y="-6.6613381e-16" />
|
||||||
|
<path
|
||||||
|
id="rect21898"
|
||||||
|
style="color:#000000;fill:#fc7f7f;stroke-width:0.820246;stroke-linecap:round;-inkscape-stroke:none;paint-order:stroke fill markers"
|
||||||
|
d="m 9.2663482,1.737417 c 0.9856638,1.499011 1.9671108,3.0012079 2.9554078,4.498229 0.129596,0.1807345 0.373201,0.2662766 0.587273,0.2058973 C 13.089886,6.375442 13.277346,6.0612441 13.202834,5.7819198 13.153979,5.594006 13.011723,5.4501514 12.916859,5.2847971 L 12.446495,4.5680377 c 0.305705,0.2693241 0.605675,0.5461295 0.91492,0.8108347 0.170345,0.1361876 0.422755,0.1504744 0.6099,0.039995 C 14.221419,5.284062 14.323718,4.9414726 14.188563,4.6908497 14.095136,4.514684 13.914161,4.4111184 13.776931,4.2726444 l -0.862797,-0.769052 c 0.480066,0.1466402 0.957864,0.302757 1.439343,0.4434946 0.211234,0.053169 0.446281,-0.037954 0.571049,-0.2155776 0.172465,-0.2266808 0.123155,-0.582066 -0.104878,-0.753897 C 14.657643,2.8559617 14.44757,2.8347395 14.26184,2.7646408 L 13.623537,2.5660451 c 0.397915,0.013597 0.796074,0.036445 1.193839,0.044361 0.218703,-0.00317 0.424086,-0.1528244 0.497606,-0.3583144 0.108876,-0.267256 -0.03738,-0.6023286 -0.308191,-0.7041422 -0.185137,-0.069538 -0.388337,-0.037843 -0.58178,-0.056867 L 9.5457739,1.2966106 C 9.0122214,1.2362303 9.1688123,1.4920408 9.2663482,1.737417 Z"
|
||||||
|
sodipodi:nodetypes="cccccccccccccccccccccc" />
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 5.7 KiB |
38
addons/terrain_3d/icons/texture_spray.svg.import
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://16yfxe7xe703"
|
||||||
|
path="res://.godot/imported/texture_spray.svg-326fee11cf418653e621bc222a470861.ctex"
|
||||||
|
metadata={
|
||||||
|
"has_editor_variant": true,
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://addons/terrain_3d/icons/texture_spray.svg"
|
||||||
|
dest_files=["res://.godot/imported/texture_spray.svg-326fee11cf418653e621bc222a470861.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
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=1
|
||||||
|
svg/scale=1.0
|
||||||
|
editor/scale_with_editor_scale=true
|
||||||
|
editor/convert_colors_with_editor_theme=false
|
||||||
41
addons/terrain_3d/icons/wetness.svg
Normal file
|
|
@ -0,0 +1,41 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Generator: Adobe Illustrator 16.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||||
|
<svg version="1.1"
|
||||||
|
id="svg2" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:svg="http://www.w3.org/2000/svg" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" sodipodi:docname="icon_color.svg" inkscape:version="1.2.2 (732a01da63, 2022-12-09)"
|
||||||
|
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="16px" height="16px"
|
||||||
|
viewBox="0 0 16 16" enable-background="new 0 0 16 16" xml:space="preserve">
|
||||||
|
<defs>
|
||||||
|
|
||||||
|
<inkscape:path-effect lpeversion="1" effect="spiro" is_visible="true" id="path-effect8712"></inkscape:path-effect>
|
||||||
|
|
||||||
|
<inkscape:path-effect scale_width="1" miter_limit="4" linejoin_type="spiro" sort_points="true" not_jump="true" offset_points="0.86174895,0.26516503" lpeversion="1" effect="powerstroke" is_visible="true" id="path-effect8643" end_linecap_type="round" start_linecap_type="round" interpolator_beta="0.75" interpolator_type="CentripetalCatmullRom">
|
||||||
|
</inkscape:path-effect>
|
||||||
|
|
||||||
|
<inkscape:path-effect step="1" helper_size="0" smooth_angles="0" threshold="0.0028332064" steps="1" lpeversion="1" effect="simplify" is_visible="true" id="path-effect8641" simplify_just_coalesce="false" simplify_individual_paths="false">
|
||||||
|
</inkscape:path-effect>
|
||||||
|
<inkscape:path-effect lpeversion="1" effect="spiro" is_visible="true" id="path-effect5927"></inkscape:path-effect>
|
||||||
|
<inkscape:path-effect lpeversion="1" effect="spiro" is_visible="true" id="path-effect5921"></inkscape:path-effect>
|
||||||
|
<inkscape:path-effect lpeversion="1" effect="spiro" is_visible="true" id="path-effect5163"></inkscape:path-effect>
|
||||||
|
<inkscape:path-effect lpeversion="1" effect="spiro" is_visible="true" id="path-effect4431"></inkscape:path-effect>
|
||||||
|
<inkscape:path-effect lpeversion="1" effect="spiro" is_visible="true" id="path-effect4425"></inkscape:path-effect>
|
||||||
|
<inkscape:path-effect lpeversion="1" effect="spiro" is_visible="true" id="path-effect4419"></inkscape:path-effect>
|
||||||
|
<inkscape:path-effect lpeversion="1" effect="spiro" is_visible="true" id="path-effect4413"></inkscape:path-effect>
|
||||||
|
<inkscape:path-effect lpeversion="1" effect="spiro" is_visible="true" id="path-effect4407"></inkscape:path-effect>
|
||||||
|
<inkscape:path-effect lpeversion="1" effect="spiro" is_visible="true" id="path-effect4401"></inkscape:path-effect>
|
||||||
|
<inkscape:path-effect lpeversion="1" effect="spiro" is_visible="true" id="path-effect4395"></inkscape:path-effect>
|
||||||
|
<inkscape:path-effect lpeversion="1" effect="spiro" is_visible="true" id="path-effect4389"></inkscape:path-effect>
|
||||||
|
<inkscape:path-effect lpeversion="1" effect="spiro" is_visible="true" id="path-effect2931"></inkscape:path-effect>
|
||||||
|
<inkscape:path-effect lpeversion="1" effect="spiro" is_visible="true" id="path-effect2925"></inkscape:path-effect>
|
||||||
|
<inkscape:path-effect lpeversion="1" effect="spiro" is_visible="true" id="path-effect3156"></inkscape:path-effect>
|
||||||
|
<inkscape:path-effect lpeversion="1" effect="spiro" is_visible="true" id="path-effect4245"></inkscape:path-effect>
|
||||||
|
<inkscape:path-effect lpeversion="1" effect="spiro" is_visible="true" id="path-effect4977"></inkscape:path-effect>
|
||||||
|
<inkscape:path-effect lpeversion="1" effect="spiro" is_visible="true" id="path-effect3156-0"></inkscape:path-effect>
|
||||||
|
</defs>
|
||||||
|
<sodipodi:namedview inkscape:cy="9.4133584" inkscape:cx="7.5793003" inkscape:zoom="22.627418" showgrid="false" guidetolerance="10" gridtolerance="10" objecttolerance="10" borderopacity="1" bordercolor="#666666" pagecolor="#ffffff" id="namedview8" inkscape:deskcolor="#d1d1d1" inkscape:showpageshadow="0" inkscape:pagecheckerboard="0" inkscape:snap-to-guides="true" inkscape:snap-grids="false" inkscape:object-nodes="true" inkscape:snap-smooth-nodes="false" inkscape:object-paths="false" inkscape:current-layer="svg2" inkscape:window-maximized="1" inkscape:window-y="-8" inkscape:window-x="-8" inkscape:window-height="1009" inkscape:window-width="1920" inkscape:pageshadow="2" inkscape:pageopacity="0">
|
||||||
|
<inkscape:grid type="xygrid" id="grid4140"></inkscape:grid>
|
||||||
|
</sodipodi:namedview>
|
||||||
|
<path id="path34808" fill="none" d="M-0.761-0.199h17.523v17.523H-0.761V-0.199z"/>
|
||||||
|
<path id="path34810" sodipodi:nodetypes="cccsc" fill="#65C1ED" d="M3.354,4.646L8,0l4.646,4.646
|
||||||
|
c4.14,4.14,1.207,11.217-4.646,11.217S-0.786,8.786,3.354,4.646z"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 4.6 KiB |
38
addons/terrain_3d/icons/wetness.svg.import
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://bcgg0srmqsh3n"
|
||||||
|
path="res://.godot/imported/wetness.svg-9b2ddec096ab7734492b77b20c75c82b.ctex"
|
||||||
|
metadata={
|
||||||
|
"has_editor_variant": true,
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://addons/terrain_3d/icons/wetness.svg"
|
||||||
|
dest_files=["res://.godot/imported/wetness.svg-9b2ddec096ab7734492b77b20c75c82b.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
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=1
|
||||||
|
svg/scale=1.0
|
||||||
|
editor/scale_with_editor_scale=true
|
||||||
|
editor/convert_colors_with_editor_theme=false
|
||||||
7
addons/terrain_3d/plugin.cfg
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[plugin]
|
||||||
|
|
||||||
|
name="Terrain3D"
|
||||||
|
description="A high performance, editable terrain system for Godot 4."
|
||||||
|
author="Cory Petkovsek & Roope Palmroos"
|
||||||
|
version="0.9.2"
|
||||||
|
script="editor.gd"
|
||||||
832
addons/terrain_3d/src/asset_dock.gd
Normal file
|
|
@ -0,0 +1,832 @@
|
||||||
|
@tool
|
||||||
|
extends PanelContainer
|
||||||
|
#class_name Terrain3DAssetDock
|
||||||
|
|
||||||
|
signal confirmation_closed
|
||||||
|
signal confirmation_confirmed
|
||||||
|
signal confirmation_canceled
|
||||||
|
|
||||||
|
const PS_DOCK_SLOT: String = "terrain3d/config/dock_slot"
|
||||||
|
const PS_DOCK_TILE_SIZE: String = "terrain3d/config/dock_tile_size"
|
||||||
|
const PS_DOCK_FLOATING: String = "terrain3d/config/dock_floating"
|
||||||
|
const PS_DOCK_PINNED: String = "terrain3d/config/dock_always_on_top"
|
||||||
|
const PS_DOCK_WINDOW_POSITION: String = "terrain3d/config/dock_window_position"
|
||||||
|
const PS_DOCK_WINDOW_SIZE: String = "terrain3d/config/dock_window_size"
|
||||||
|
|
||||||
|
var texture_list: ListContainer
|
||||||
|
var mesh_list: ListContainer
|
||||||
|
var _current_list: ListContainer
|
||||||
|
var _last_thumb_update_time: int = 0
|
||||||
|
const MAX_UPDATE_TIME: int = 1000
|
||||||
|
|
||||||
|
var placement_opt: OptionButton
|
||||||
|
var floating_btn: Button
|
||||||
|
var pinned_btn: Button
|
||||||
|
var size_slider: HSlider
|
||||||
|
var box: BoxContainer
|
||||||
|
var buttons: BoxContainer
|
||||||
|
var textures_btn: Button
|
||||||
|
var meshes_btn: Button
|
||||||
|
var asset_container: ScrollContainer
|
||||||
|
var confirm_dialog: ConfirmationDialog
|
||||||
|
var _confirmed: bool = false
|
||||||
|
|
||||||
|
# Used only for editor, so change to single visible/hiddden
|
||||||
|
enum {
|
||||||
|
HIDDEN = -1,
|
||||||
|
SIDEBAR = 0,
|
||||||
|
BOTTOM = 1,
|
||||||
|
WINDOWED = 2,
|
||||||
|
}
|
||||||
|
var state: int = HIDDEN
|
||||||
|
|
||||||
|
var window: Window
|
||||||
|
var _godot_editor_window: Window # The main Godot Editor window
|
||||||
|
var _godot_last_state: Window.Mode = Window.MODE_FULLSCREEN
|
||||||
|
|
||||||
|
enum {
|
||||||
|
POS_LEFT_UL = 0,
|
||||||
|
POS_LEFT_BL = 1,
|
||||||
|
POS_LEFT_UR = 2,
|
||||||
|
POS_LEFT_BR = 3,
|
||||||
|
POS_RIGHT_UL = 4,
|
||||||
|
POS_RIGHT_BL = 5,
|
||||||
|
POS_RIGHT_UR = 6,
|
||||||
|
POS_RIGHT_BR = 7,
|
||||||
|
POS_BOTTOM = 8,
|
||||||
|
POS_MAX = 9,
|
||||||
|
}
|
||||||
|
var slot: int = POS_RIGHT_BR
|
||||||
|
var _initialized: bool = false
|
||||||
|
var plugin: EditorPlugin
|
||||||
|
var editor_settings: EditorSettings
|
||||||
|
|
||||||
|
|
||||||
|
func initialize(p_plugin: EditorPlugin) -> void:
|
||||||
|
if p_plugin:
|
||||||
|
plugin = p_plugin
|
||||||
|
|
||||||
|
# Get editor window. Structure is root:Window/EditorNode/Base Control
|
||||||
|
_godot_editor_window = plugin.get_editor_interface().get_base_control().get_parent().get_parent()
|
||||||
|
_godot_last_state = _godot_editor_window.mode
|
||||||
|
|
||||||
|
placement_opt = $Box/Buttons/PlacementOpt
|
||||||
|
pinned_btn = $Box/Buttons/Pinned
|
||||||
|
floating_btn = $Box/Buttons/Floating
|
||||||
|
floating_btn.owner = null
|
||||||
|
size_slider = $Box/Buttons/SizeSlider
|
||||||
|
size_slider.owner = null
|
||||||
|
box = $Box
|
||||||
|
buttons = $Box/Buttons
|
||||||
|
textures_btn = $Box/Buttons/TexturesBtn
|
||||||
|
meshes_btn = $Box/Buttons/MeshesBtn
|
||||||
|
asset_container = $Box/ScrollContainer
|
||||||
|
|
||||||
|
texture_list = ListContainer.new()
|
||||||
|
texture_list.plugin = plugin
|
||||||
|
texture_list.type = Terrain3DAssets.TYPE_TEXTURE
|
||||||
|
asset_container.add_child(texture_list)
|
||||||
|
mesh_list = ListContainer.new()
|
||||||
|
mesh_list.plugin = plugin
|
||||||
|
mesh_list.type = Terrain3DAssets.TYPE_MESH
|
||||||
|
mesh_list.visible = false
|
||||||
|
asset_container.add_child(mesh_list)
|
||||||
|
_current_list = texture_list
|
||||||
|
|
||||||
|
editor_settings = EditorInterface.get_editor_settings()
|
||||||
|
load_editor_settings()
|
||||||
|
|
||||||
|
# Connect signals
|
||||||
|
resized.connect(update_layout)
|
||||||
|
textures_btn.pressed.connect(_on_textures_pressed)
|
||||||
|
meshes_btn.pressed.connect(_on_meshes_pressed)
|
||||||
|
placement_opt.item_selected.connect(set_slot)
|
||||||
|
floating_btn.pressed.connect(make_dock_float)
|
||||||
|
pinned_btn.toggled.connect(_on_pin_changed)
|
||||||
|
pinned_btn.visible = false
|
||||||
|
size_slider.value_changed.connect(_on_slider_changed)
|
||||||
|
plugin.ui.toolbar.tool_changed.connect(_on_tool_changed)
|
||||||
|
|
||||||
|
meshes_btn.add_theme_font_size_override("font_size", 16 * EditorInterface.get_editor_scale())
|
||||||
|
textures_btn.add_theme_font_size_override("font_size", 16 * EditorInterface.get_editor_scale())
|
||||||
|
|
||||||
|
_initialized = true
|
||||||
|
update_dock(plugin.visible)
|
||||||
|
update_layout()
|
||||||
|
|
||||||
|
|
||||||
|
func _ready() -> void:
|
||||||
|
if not _initialized:
|
||||||
|
return
|
||||||
|
|
||||||
|
# Setup styles
|
||||||
|
set("theme_override_styles/panel", get_theme_stylebox("panel", "Panel"))
|
||||||
|
# Avoid saving icon resources in tscn when editing w/ a tool script
|
||||||
|
if plugin.get_editor_interface().get_edited_scene_root() != self:
|
||||||
|
pinned_btn.icon = get_theme_icon("Pin", "EditorIcons")
|
||||||
|
pinned_btn.text = ""
|
||||||
|
floating_btn.icon = get_theme_icon("MakeFloating", "EditorIcons")
|
||||||
|
floating_btn.text = ""
|
||||||
|
|
||||||
|
update_thumbnails()
|
||||||
|
confirm_dialog = ConfirmationDialog.new()
|
||||||
|
add_child(confirm_dialog)
|
||||||
|
confirm_dialog.hide()
|
||||||
|
confirm_dialog.confirmed.connect(func(): _confirmed = true; \
|
||||||
|
emit_signal("confirmation_closed"); \
|
||||||
|
emit_signal("confirmation_confirmed") )
|
||||||
|
confirm_dialog.canceled.connect(func(): _confirmed = false; \
|
||||||
|
emit_signal("confirmation_closed"); \
|
||||||
|
emit_signal("confirmation_canceled") )
|
||||||
|
|
||||||
|
|
||||||
|
func get_current_list() -> ListContainer:
|
||||||
|
return _current_list
|
||||||
|
|
||||||
|
|
||||||
|
## Dock placement
|
||||||
|
|
||||||
|
func set_slot(p_slot: int) -> void:
|
||||||
|
p_slot = clamp(p_slot, 0, POS_MAX-1)
|
||||||
|
|
||||||
|
if slot != p_slot:
|
||||||
|
slot = p_slot
|
||||||
|
placement_opt.selected = slot
|
||||||
|
save_editor_settings()
|
||||||
|
plugin.select_terrain()
|
||||||
|
update_dock(plugin.visible)
|
||||||
|
|
||||||
|
|
||||||
|
func remove_dock(p_force: bool = false) -> void:
|
||||||
|
if state == SIDEBAR:
|
||||||
|
plugin.remove_control_from_docks(self)
|
||||||
|
state = HIDDEN
|
||||||
|
|
||||||
|
elif state == BOTTOM:
|
||||||
|
plugin.remove_control_from_bottom_panel(self)
|
||||||
|
state = HIDDEN
|
||||||
|
|
||||||
|
# If windowed and destination is not window or final exit, otherwise leave
|
||||||
|
elif state == WINDOWED and p_force:
|
||||||
|
if not window:
|
||||||
|
return
|
||||||
|
var parent: Node = get_parent()
|
||||||
|
if parent:
|
||||||
|
parent.remove_child(self)
|
||||||
|
_godot_editor_window.mouse_entered.disconnect(_on_godot_window_entered)
|
||||||
|
_godot_editor_window.focus_entered.disconnect(_on_godot_focus_entered)
|
||||||
|
_godot_editor_window.focus_exited.disconnect(_on_godot_focus_exited)
|
||||||
|
window.hide()
|
||||||
|
window.queue_free()
|
||||||
|
window = null
|
||||||
|
floating_btn.button_pressed = false
|
||||||
|
floating_btn.visible = true
|
||||||
|
pinned_btn.visible = false
|
||||||
|
placement_opt.visible = true
|
||||||
|
state = HIDDEN
|
||||||
|
update_dock(plugin.visible) # return window to side/bottom
|
||||||
|
|
||||||
|
|
||||||
|
func update_dock(p_visible: bool) -> void:
|
||||||
|
update_assets()
|
||||||
|
if not _initialized:
|
||||||
|
return
|
||||||
|
|
||||||
|
if window:
|
||||||
|
return
|
||||||
|
elif floating_btn.button_pressed:
|
||||||
|
# No window, but floating button pressed, occurs when from editor settings
|
||||||
|
make_dock_float()
|
||||||
|
return
|
||||||
|
|
||||||
|
remove_dock()
|
||||||
|
# Add dock to new destination
|
||||||
|
# Sidebar
|
||||||
|
if slot < POS_BOTTOM:
|
||||||
|
state = SIDEBAR
|
||||||
|
plugin.add_control_to_dock(slot, self)
|
||||||
|
elif slot == POS_BOTTOM:
|
||||||
|
state = BOTTOM
|
||||||
|
plugin.add_control_to_bottom_panel(self, "Terrain3D")
|
||||||
|
if p_visible:
|
||||||
|
plugin.make_bottom_panel_item_visible(self)
|
||||||
|
|
||||||
|
|
||||||
|
func update_layout() -> void:
|
||||||
|
if not _initialized:
|
||||||
|
return
|
||||||
|
|
||||||
|
# Detect if we have a new window from Make floating, grab it so we can free it properly
|
||||||
|
if not window and get_parent() and get_parent().get_parent() is Window:
|
||||||
|
window = get_parent().get_parent()
|
||||||
|
make_dock_float()
|
||||||
|
return # Will call this function again upon display
|
||||||
|
|
||||||
|
var size_parent: Control = size_slider.get_parent()
|
||||||
|
# Vertical layout in window / sidebar
|
||||||
|
if window or slot < POS_BOTTOM:
|
||||||
|
box.vertical = true
|
||||||
|
buttons.vertical = false
|
||||||
|
|
||||||
|
if size.x >= 500 and size_parent != buttons:
|
||||||
|
size_slider.reparent(buttons)
|
||||||
|
buttons.move_child(size_slider, 3)
|
||||||
|
elif size.x < 500 and size_parent != box:
|
||||||
|
size_slider.reparent(box)
|
||||||
|
box.move_child(size_slider, 1)
|
||||||
|
floating_btn.reparent(buttons)
|
||||||
|
buttons.move_child(floating_btn, 4)
|
||||||
|
|
||||||
|
# Wide layout on bottom bar
|
||||||
|
else:
|
||||||
|
size_slider.reparent(buttons)
|
||||||
|
buttons.move_child(size_slider, 3)
|
||||||
|
floating_btn.reparent(box)
|
||||||
|
box.vertical = false
|
||||||
|
buttons.vertical = true
|
||||||
|
|
||||||
|
save_editor_settings()
|
||||||
|
|
||||||
|
|
||||||
|
func update_thumbnails() -> void:
|
||||||
|
if not is_instance_valid(plugin.terrain):
|
||||||
|
return
|
||||||
|
if _current_list.type == Terrain3DAssets.TYPE_MESH and \
|
||||||
|
Time.get_ticks_msec() - _last_thumb_update_time > MAX_UPDATE_TIME:
|
||||||
|
plugin.terrain.assets.create_mesh_thumbnails()
|
||||||
|
_last_thumb_update_time = Time.get_ticks_msec()
|
||||||
|
for mesh_asset in mesh_list.entries:
|
||||||
|
mesh_asset.queue_redraw()
|
||||||
|
## Dock Button handlers
|
||||||
|
|
||||||
|
|
||||||
|
func _on_pin_changed(toggled: bool) -> void:
|
||||||
|
if window:
|
||||||
|
window.always_on_top = pinned_btn.button_pressed
|
||||||
|
save_editor_settings()
|
||||||
|
|
||||||
|
|
||||||
|
func _on_slider_changed(value: float) -> void:
|
||||||
|
if texture_list:
|
||||||
|
texture_list.set_entry_width(value)
|
||||||
|
if mesh_list:
|
||||||
|
mesh_list.set_entry_width(value)
|
||||||
|
save_editor_settings()
|
||||||
|
|
||||||
|
|
||||||
|
func _on_textures_pressed() -> void:
|
||||||
|
_current_list = texture_list
|
||||||
|
texture_list.update_asset_list()
|
||||||
|
texture_list.visible = true
|
||||||
|
mesh_list.visible = false
|
||||||
|
textures_btn.button_pressed = true
|
||||||
|
meshes_btn.button_pressed = false
|
||||||
|
texture_list.set_selected_id(texture_list.selected_id)
|
||||||
|
plugin.get_editor_interface().edit_node(plugin.terrain)
|
||||||
|
|
||||||
|
|
||||||
|
func _on_meshes_pressed() -> void:
|
||||||
|
_current_list = mesh_list
|
||||||
|
mesh_list.update_asset_list()
|
||||||
|
mesh_list.visible = true
|
||||||
|
texture_list.visible = false
|
||||||
|
meshes_btn.button_pressed = true
|
||||||
|
textures_btn.button_pressed = false
|
||||||
|
mesh_list.set_selected_id(mesh_list.selected_id)
|
||||||
|
plugin.get_editor_interface().edit_node(plugin.terrain)
|
||||||
|
update_thumbnails()
|
||||||
|
|
||||||
|
|
||||||
|
func _on_tool_changed(p_tool: Terrain3DEditor.Tool, p_operation: Terrain3DEditor.Operation) -> void:
|
||||||
|
if p_tool == Terrain3DEditor.INSTANCER:
|
||||||
|
_on_meshes_pressed()
|
||||||
|
elif p_tool == Terrain3DEditor.TEXTURE:
|
||||||
|
_on_textures_pressed()
|
||||||
|
|
||||||
|
|
||||||
|
## Update Dock Contents
|
||||||
|
|
||||||
|
|
||||||
|
func update_assets() -> void:
|
||||||
|
if not _initialized:
|
||||||
|
return
|
||||||
|
|
||||||
|
# Verify signals to individual lists
|
||||||
|
if plugin.is_terrain_valid() and plugin.terrain.assets:
|
||||||
|
if not plugin.terrain.assets.textures_changed.is_connected(texture_list.update_asset_list):
|
||||||
|
plugin.terrain.assets.textures_changed.connect(texture_list.update_asset_list)
|
||||||
|
if not plugin.terrain.assets.meshes_changed.is_connected(mesh_list.update_asset_list):
|
||||||
|
plugin.terrain.assets.meshes_changed.connect(mesh_list.update_asset_list)
|
||||||
|
|
||||||
|
_current_list.update_asset_list()
|
||||||
|
|
||||||
|
## Window Management
|
||||||
|
|
||||||
|
|
||||||
|
func make_dock_float() -> void:
|
||||||
|
# If already created (eg from editor Make Floating)
|
||||||
|
if not window:
|
||||||
|
remove_dock()
|
||||||
|
create_window()
|
||||||
|
|
||||||
|
state = WINDOWED
|
||||||
|
pinned_btn.visible = true
|
||||||
|
floating_btn.visible = false
|
||||||
|
placement_opt.visible = false
|
||||||
|
window.title = "Terrain3D Asset Dock"
|
||||||
|
window.always_on_top = pinned_btn.button_pressed
|
||||||
|
window.close_requested.connect(remove_dock.bind(true))
|
||||||
|
visible = true # Is hidden when pops off of bottom. ??
|
||||||
|
_godot_editor_window.grab_focus()
|
||||||
|
|
||||||
|
|
||||||
|
func create_window() -> void:
|
||||||
|
window = Window.new()
|
||||||
|
window.wrap_controls = true
|
||||||
|
var mc := MarginContainer.new()
|
||||||
|
mc.set_anchors_preset(PRESET_FULL_RECT, false)
|
||||||
|
mc.add_child(self)
|
||||||
|
window.add_child(mc)
|
||||||
|
window.set_transient(false)
|
||||||
|
window.set_size(get_setting(PS_DOCK_WINDOW_SIZE, Vector2i(512, 512)))
|
||||||
|
window.set_position(get_setting(PS_DOCK_WINDOW_POSITION, Vector2i(704, 284)))
|
||||||
|
plugin.add_child(window)
|
||||||
|
window.show()
|
||||||
|
window.window_input.connect(_on_window_input)
|
||||||
|
window.focus_exited.connect(_on_window_focus_exited)
|
||||||
|
_godot_editor_window.mouse_entered.connect(_on_godot_window_entered)
|
||||||
|
_godot_editor_window.focus_entered.connect(_on_godot_focus_entered)
|
||||||
|
_godot_editor_window.focus_exited.connect(_on_godot_focus_exited)
|
||||||
|
|
||||||
|
|
||||||
|
func _on_window_input(event: InputEvent) -> void:
|
||||||
|
# Capture CTRL+S when doc focused to save scene)
|
||||||
|
if event is InputEventKey and event.keycode == KEY_S and event.pressed and event.is_command_or_control_pressed():
|
||||||
|
save_editor_settings()
|
||||||
|
plugin.get_editor_interface().save_scene()
|
||||||
|
|
||||||
|
|
||||||
|
func _on_window_focus_exited() -> void:
|
||||||
|
# Capture window position w/o other changes
|
||||||
|
save_editor_settings()
|
||||||
|
|
||||||
|
|
||||||
|
func _on_godot_window_entered() -> void:
|
||||||
|
if is_instance_valid(window) and window.has_focus():
|
||||||
|
_godot_editor_window.grab_focus()
|
||||||
|
|
||||||
|
|
||||||
|
func _on_godot_focus_entered() -> void:
|
||||||
|
# If asset dock is windowed, and Godot was minimized, and now is not, restore asset dock window
|
||||||
|
if is_instance_valid(window):
|
||||||
|
if _godot_last_state == Window.MODE_MINIMIZED and _godot_editor_window.mode != Window.MODE_MINIMIZED:
|
||||||
|
window.show()
|
||||||
|
_godot_last_state = _godot_editor_window.mode
|
||||||
|
_godot_editor_window.grab_focus()
|
||||||
|
|
||||||
|
|
||||||
|
func _on_godot_focus_exited() -> void:
|
||||||
|
if is_instance_valid(window) and _godot_editor_window.mode == Window.MODE_MINIMIZED:
|
||||||
|
window.hide()
|
||||||
|
_godot_last_state = _godot_editor_window.mode
|
||||||
|
|
||||||
|
|
||||||
|
## Manage Editor Settings
|
||||||
|
|
||||||
|
|
||||||
|
func get_setting(p_str: String, p_default: Variant) -> Variant:
|
||||||
|
if editor_settings.has_setting(p_str):
|
||||||
|
return editor_settings.get_setting(p_str)
|
||||||
|
else:
|
||||||
|
return p_default
|
||||||
|
|
||||||
|
|
||||||
|
func load_editor_settings() -> void:
|
||||||
|
floating_btn.button_pressed = get_setting(PS_DOCK_FLOATING, false)
|
||||||
|
pinned_btn.button_pressed = get_setting(PS_DOCK_PINNED, true)
|
||||||
|
size_slider.value = get_setting(PS_DOCK_TILE_SIZE, 83)
|
||||||
|
set_slot(get_setting(PS_DOCK_SLOT, POS_BOTTOM))
|
||||||
|
_on_slider_changed(size_slider.value)
|
||||||
|
# Window pos/size set on window creation in update_dock
|
||||||
|
update_dock(plugin.visible)
|
||||||
|
|
||||||
|
|
||||||
|
func save_editor_settings() -> void:
|
||||||
|
if not _initialized:
|
||||||
|
return
|
||||||
|
editor_settings.set_setting(PS_DOCK_SLOT, slot)
|
||||||
|
editor_settings.set_setting(PS_DOCK_TILE_SIZE, size_slider.value)
|
||||||
|
editor_settings.set_setting(PS_DOCK_FLOATING, floating_btn.button_pressed)
|
||||||
|
editor_settings.set_setting(PS_DOCK_PINNED, pinned_btn.button_pressed)
|
||||||
|
if window:
|
||||||
|
editor_settings.set_setting(PS_DOCK_WINDOW_SIZE, window.size)
|
||||||
|
editor_settings.set_setting(PS_DOCK_WINDOW_POSITION, window.position)
|
||||||
|
|
||||||
|
|
||||||
|
##############################################################
|
||||||
|
## class ListContainer
|
||||||
|
##############################################################
|
||||||
|
|
||||||
|
|
||||||
|
class ListContainer extends Container:
|
||||||
|
var plugin: EditorPlugin
|
||||||
|
var type := Terrain3DAssets.TYPE_TEXTURE
|
||||||
|
var entries: Array[ListEntry]
|
||||||
|
var selected_id: int = 0
|
||||||
|
var height: float = 0
|
||||||
|
var width: float = 83
|
||||||
|
var focus_style: StyleBox
|
||||||
|
|
||||||
|
|
||||||
|
func _ready() -> void:
|
||||||
|
set_v_size_flags(SIZE_EXPAND_FILL)
|
||||||
|
set_h_size_flags(SIZE_EXPAND_FILL)
|
||||||
|
focus_style = get_theme_stylebox("focus", "Button").duplicate()
|
||||||
|
focus_style.set_border_width_all(2)
|
||||||
|
focus_style.set_border_color(Color(1, 1, 1, .67))
|
||||||
|
|
||||||
|
|
||||||
|
func clear() -> void:
|
||||||
|
for e in entries:
|
||||||
|
e.get_parent().remove_child(e)
|
||||||
|
e.queue_free()
|
||||||
|
entries.clear()
|
||||||
|
|
||||||
|
|
||||||
|
func update_asset_list() -> void:
|
||||||
|
clear()
|
||||||
|
|
||||||
|
# Grab terrain
|
||||||
|
var t: Terrain3D
|
||||||
|
if plugin.is_terrain_valid():
|
||||||
|
t = plugin.terrain
|
||||||
|
elif is_instance_valid(plugin._last_terrain) and plugin.is_terrain_valid(plugin._last_terrain):
|
||||||
|
t = plugin._last_terrain
|
||||||
|
else:
|
||||||
|
return
|
||||||
|
|
||||||
|
if not t.assets:
|
||||||
|
return
|
||||||
|
|
||||||
|
if type == Terrain3DAssets.TYPE_TEXTURE:
|
||||||
|
var texture_count: int = t.assets.get_texture_count()
|
||||||
|
for i in texture_count:
|
||||||
|
var texture: Terrain3DTextureAsset = t.assets.get_texture(i)
|
||||||
|
add_item(texture)
|
||||||
|
if texture_count < Terrain3DAssets.MAX_TEXTURES:
|
||||||
|
add_item()
|
||||||
|
else:
|
||||||
|
var mesh_count: int = t.assets.get_mesh_count()
|
||||||
|
for i in mesh_count:
|
||||||
|
var mesh: Terrain3DMeshAsset = t.assets.get_mesh_asset(i)
|
||||||
|
add_item(mesh, t.assets)
|
||||||
|
if mesh_count < Terrain3DAssets.MAX_MESHES:
|
||||||
|
add_item()
|
||||||
|
if selected_id >= mesh_count or selected_id < 0:
|
||||||
|
set_selected_id(0)
|
||||||
|
|
||||||
|
|
||||||
|
func add_item(p_resource: Resource = null, p_assets: Terrain3DAssets = null) -> void:
|
||||||
|
var entry: ListEntry = ListEntry.new()
|
||||||
|
entry.focus_style = focus_style
|
||||||
|
var id: int = entries.size()
|
||||||
|
|
||||||
|
entry.set_edited_resource(p_resource)
|
||||||
|
entry.hovered.connect(_on_resource_hovered.bind(id))
|
||||||
|
entry.selected.connect(set_selected_id.bind(id))
|
||||||
|
entry.inspected.connect(_on_resource_inspected)
|
||||||
|
entry.changed.connect(_on_resource_changed.bind(id))
|
||||||
|
entry.type = type
|
||||||
|
entry.asset_list = p_assets
|
||||||
|
add_child(entry)
|
||||||
|
entries.push_back(entry)
|
||||||
|
|
||||||
|
if p_resource:
|
||||||
|
entry.set_selected(id == selected_id)
|
||||||
|
if not p_resource.id_changed.is_connected(set_selected_after_swap):
|
||||||
|
p_resource.id_changed.connect(set_selected_after_swap)
|
||||||
|
|
||||||
|
|
||||||
|
func _on_resource_hovered(p_id: int):
|
||||||
|
if type == Terrain3DAssets.TYPE_MESH:
|
||||||
|
if plugin.terrain:
|
||||||
|
plugin.terrain.assets.create_mesh_thumbnails(p_id)
|
||||||
|
|
||||||
|
|
||||||
|
func set_selected_after_swap(p_type: Terrain3DAssets.AssetType, p_old_id: int, p_new_id: int) -> void:
|
||||||
|
set_selected_id(clamp(p_new_id, 0, entries.size() - 2))
|
||||||
|
|
||||||
|
|
||||||
|
func set_selected_id(p_id: int) -> void:
|
||||||
|
selected_id = p_id
|
||||||
|
|
||||||
|
for i in entries.size():
|
||||||
|
var entry: ListEntry = entries[i]
|
||||||
|
entry.set_selected(i == selected_id)
|
||||||
|
|
||||||
|
plugin.select_terrain()
|
||||||
|
|
||||||
|
# Select Paint tool if clicking a texture
|
||||||
|
if type == Terrain3DAssets.TYPE_TEXTURE and plugin.editor.get_tool() != Terrain3DEditor.TEXTURE:
|
||||||
|
var paint_btn: Button = plugin.ui.toolbar.get_node_or_null("PaintBaseTexture")
|
||||||
|
if paint_btn:
|
||||||
|
paint_btn.set_pressed(true)
|
||||||
|
plugin.ui._on_tool_changed(Terrain3DEditor.TEXTURE, Terrain3DEditor.REPLACE)
|
||||||
|
|
||||||
|
elif type == Terrain3DAssets.TYPE_MESH and plugin.editor.get_tool() != Terrain3DEditor.INSTANCER:
|
||||||
|
var instancer_btn: Button = plugin.ui.toolbar.get_node_or_null("InstanceMeshes")
|
||||||
|
if instancer_btn:
|
||||||
|
instancer_btn.set_pressed(true)
|
||||||
|
plugin.ui._on_tool_changed(Terrain3DEditor.INSTANCER, Terrain3DEditor.ADD)
|
||||||
|
|
||||||
|
# Update editor with selected brush
|
||||||
|
plugin.ui._on_setting_changed()
|
||||||
|
|
||||||
|
|
||||||
|
func _on_resource_inspected(p_resource: Resource) -> void:
|
||||||
|
await get_tree().create_timer(.01).timeout
|
||||||
|
plugin.get_editor_interface().edit_resource(p_resource)
|
||||||
|
|
||||||
|
|
||||||
|
func _on_resource_changed(p_resource: Resource, p_id: int) -> void:
|
||||||
|
if not p_resource:
|
||||||
|
var asset_dock: Control = get_parent().get_parent().get_parent()
|
||||||
|
if type == Terrain3DAssets.TYPE_TEXTURE:
|
||||||
|
asset_dock.confirm_dialog.dialog_text = "Are you sure you want to clear this texture?"
|
||||||
|
else:
|
||||||
|
asset_dock.confirm_dialog.dialog_text = "Are you sure you want to clear this mesh and delete all instances?"
|
||||||
|
asset_dock.confirm_dialog.popup_centered()
|
||||||
|
await asset_dock.confirmation_closed
|
||||||
|
if not asset_dock._confirmed:
|
||||||
|
update_asset_list()
|
||||||
|
return
|
||||||
|
|
||||||
|
if not plugin.is_terrain_valid():
|
||||||
|
plugin.select_terrain()
|
||||||
|
await get_tree().create_timer(.01).timeout
|
||||||
|
|
||||||
|
if plugin.is_terrain_valid():
|
||||||
|
if type == Terrain3DAssets.TYPE_TEXTURE:
|
||||||
|
plugin.terrain.get_assets().set_texture(p_id, p_resource)
|
||||||
|
else:
|
||||||
|
plugin.terrain.get_assets().set_mesh_asset(p_id, p_resource)
|
||||||
|
await get_tree().create_timer(.01).timeout
|
||||||
|
plugin.terrain.assets.create_mesh_thumbnails(p_id)
|
||||||
|
|
||||||
|
# If removing an entry, clear inspector
|
||||||
|
if not p_resource:
|
||||||
|
plugin.get_editor_interface().inspect_object(null)
|
||||||
|
|
||||||
|
# If null resource, remove last
|
||||||
|
if not p_resource:
|
||||||
|
var last_offset: int = 2
|
||||||
|
if p_id == entries.size()-2:
|
||||||
|
last_offset = 3
|
||||||
|
set_selected_id(clamp(selected_id, 0, entries.size() - last_offset))
|
||||||
|
|
||||||
|
# Update editor with selected brush
|
||||||
|
plugin.ui._on_setting_changed()
|
||||||
|
|
||||||
|
|
||||||
|
func get_selected_id() -> int:
|
||||||
|
return selected_id
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
func set_entry_width(value: float) -> void:
|
||||||
|
width = clamp(value, 56, 230)
|
||||||
|
redraw()
|
||||||
|
|
||||||
|
|
||||||
|
func get_entry_width() -> float:
|
||||||
|
return width
|
||||||
|
|
||||||
|
|
||||||
|
func redraw() -> void:
|
||||||
|
height = 0
|
||||||
|
var id: int = 0
|
||||||
|
var separation: float = 4
|
||||||
|
var columns: int = 3
|
||||||
|
columns = clamp(size.x / width, 1, 100)
|
||||||
|
|
||||||
|
for c in get_children():
|
||||||
|
if is_instance_valid(c):
|
||||||
|
c.size = Vector2(width, width) - Vector2(separation, separation)
|
||||||
|
c.position = Vector2(id % columns, id / columns) * width + \
|
||||||
|
Vector2(separation / columns, separation / columns)
|
||||||
|
height = max(height, c.position.y + width)
|
||||||
|
id += 1
|
||||||
|
|
||||||
|
|
||||||
|
# Needed to enable ScrollContainer scroll bar
|
||||||
|
func _get_minimum_size() -> Vector2:
|
||||||
|
return Vector2(0, height)
|
||||||
|
|
||||||
|
|
||||||
|
func _notification(p_what) -> void:
|
||||||
|
if p_what == NOTIFICATION_SORT_CHILDREN:
|
||||||
|
redraw()
|
||||||
|
|
||||||
|
|
||||||
|
##############################################################
|
||||||
|
## class ListEntry
|
||||||
|
##############################################################
|
||||||
|
|
||||||
|
|
||||||
|
class ListEntry extends VBoxContainer:
|
||||||
|
signal hovered()
|
||||||
|
signal selected()
|
||||||
|
signal changed(resource: Resource)
|
||||||
|
signal inspected(resource: Resource)
|
||||||
|
|
||||||
|
var resource: Resource
|
||||||
|
var type := Terrain3DAssets.TYPE_TEXTURE
|
||||||
|
var _thumbnail: Texture2D
|
||||||
|
var drop_data: bool = false
|
||||||
|
var is_hovered: bool = false
|
||||||
|
var is_selected: bool = false
|
||||||
|
var asset_list: Terrain3DAssets
|
||||||
|
|
||||||
|
var button_clear: TextureButton
|
||||||
|
var button_edit: TextureButton
|
||||||
|
var name_label: Label
|
||||||
|
|
||||||
|
@onready var add_icon: Texture2D = get_theme_icon("Add", "EditorIcons")
|
||||||
|
@onready var clear_icon: Texture2D = get_theme_icon("Close", "EditorIcons")
|
||||||
|
@onready var edit_icon: Texture2D = get_theme_icon("Edit", "EditorIcons")
|
||||||
|
@onready var background: StyleBox = get_theme_stylebox("pressed", "Button")
|
||||||
|
var focus_style: StyleBox
|
||||||
|
|
||||||
|
|
||||||
|
func _ready() -> void:
|
||||||
|
var icon_size: Vector2 = Vector2(12, 12)
|
||||||
|
|
||||||
|
button_clear = TextureButton.new()
|
||||||
|
button_clear.set_texture_normal(clear_icon)
|
||||||
|
button_clear.set_custom_minimum_size(icon_size)
|
||||||
|
button_clear.set_h_size_flags(Control.SIZE_SHRINK_END)
|
||||||
|
button_clear.set_visible(resource != null)
|
||||||
|
button_clear.pressed.connect(clear)
|
||||||
|
add_child(button_clear)
|
||||||
|
|
||||||
|
button_edit = TextureButton.new()
|
||||||
|
button_edit.set_texture_normal(edit_icon)
|
||||||
|
button_edit.set_custom_minimum_size(icon_size)
|
||||||
|
button_edit.set_h_size_flags(Control.SIZE_SHRINK_END)
|
||||||
|
button_edit.set_visible(resource != null)
|
||||||
|
button_edit.pressed.connect(edit)
|
||||||
|
add_child(button_edit)
|
||||||
|
|
||||||
|
name_label = Label.new()
|
||||||
|
add_child(name_label, true)
|
||||||
|
name_label.visible = false
|
||||||
|
name_label.horizontal_alignment = HORIZONTAL_ALIGNMENT_CENTER
|
||||||
|
name_label.vertical_alignment = VERTICAL_ALIGNMENT_BOTTOM
|
||||||
|
name_label.size_flags_vertical = Control.SIZE_EXPAND_FILL
|
||||||
|
name_label.add_theme_color_override("font_shadow_color", Color.BLACK)
|
||||||
|
name_label.add_theme_constant_override("shadow_offset_x", 1)
|
||||||
|
name_label.add_theme_constant_override("shadow_offset_y", 1)
|
||||||
|
name_label.add_theme_font_size_override("font_size", 15)
|
||||||
|
name_label.autowrap_mode = TextServer.AUTOWRAP_WORD_SMART
|
||||||
|
name_label.text_overrun_behavior = TextServer.OVERRUN_TRIM_ELLIPSIS
|
||||||
|
if type == Terrain3DAssets.TYPE_TEXTURE:
|
||||||
|
name_label.text = "Add Texture"
|
||||||
|
else:
|
||||||
|
name_label.text = "Add Mesh"
|
||||||
|
|
||||||
|
|
||||||
|
func _notification(p_what) -> void:
|
||||||
|
match p_what:
|
||||||
|
NOTIFICATION_DRAW:
|
||||||
|
var rect: Rect2 = Rect2(Vector2.ZERO, get_size())
|
||||||
|
if !resource:
|
||||||
|
draw_style_box(background, rect)
|
||||||
|
draw_texture(add_icon, (get_size() / 2) - (add_icon.get_size() / 2))
|
||||||
|
else:
|
||||||
|
if type == Terrain3DAssets.TYPE_TEXTURE:
|
||||||
|
name_label.text = (resource as Terrain3DTextureAsset).get_name()
|
||||||
|
self_modulate = resource.get_albedo_color()
|
||||||
|
_thumbnail = resource.get_albedo_texture()
|
||||||
|
if _thumbnail:
|
||||||
|
draw_texture_rect(_thumbnail, rect, false)
|
||||||
|
texture_filter = CanvasItem.TEXTURE_FILTER_NEAREST_WITH_MIPMAPS
|
||||||
|
else:
|
||||||
|
name_label.text = (resource as Terrain3DMeshAsset).get_name()
|
||||||
|
var id: int = (resource as Terrain3DMeshAsset).get_id()
|
||||||
|
_thumbnail = resource.get_thumbnail()
|
||||||
|
if _thumbnail:
|
||||||
|
draw_texture_rect(_thumbnail, rect, false)
|
||||||
|
texture_filter = CanvasItem.TEXTURE_FILTER_LINEAR_WITH_MIPMAPS
|
||||||
|
else:
|
||||||
|
draw_rect(rect, Color(.15, .15, .15, 1.))
|
||||||
|
name_label.add_theme_font_size_override("font_size", 4 + rect.size.x/10)
|
||||||
|
if drop_data:
|
||||||
|
draw_style_box(focus_style, rect)
|
||||||
|
if is_hovered:
|
||||||
|
draw_rect(rect, Color(1, 1, 1, 0.2))
|
||||||
|
if is_selected:
|
||||||
|
draw_style_box(focus_style, rect)
|
||||||
|
NOTIFICATION_MOUSE_ENTER:
|
||||||
|
is_hovered = true
|
||||||
|
name_label.visible = true
|
||||||
|
emit_signal("hovered")
|
||||||
|
queue_redraw()
|
||||||
|
NOTIFICATION_MOUSE_EXIT:
|
||||||
|
is_hovered = false
|
||||||
|
name_label.visible = false
|
||||||
|
drop_data = false
|
||||||
|
queue_redraw()
|
||||||
|
|
||||||
|
|
||||||
|
func _gui_input(p_event: InputEvent) -> void:
|
||||||
|
if p_event is InputEventMouseButton:
|
||||||
|
if p_event.is_pressed():
|
||||||
|
match p_event.get_button_index():
|
||||||
|
MOUSE_BUTTON_LEFT:
|
||||||
|
# If `Add new` is clicked
|
||||||
|
if !resource:
|
||||||
|
if type == Terrain3DAssets.TYPE_TEXTURE:
|
||||||
|
set_edited_resource(Terrain3DTextureAsset.new(), false)
|
||||||
|
else:
|
||||||
|
set_edited_resource(Terrain3DMeshAsset.new(), false)
|
||||||
|
edit()
|
||||||
|
else:
|
||||||
|
emit_signal("selected")
|
||||||
|
MOUSE_BUTTON_RIGHT:
|
||||||
|
if resource:
|
||||||
|
edit()
|
||||||
|
MOUSE_BUTTON_MIDDLE:
|
||||||
|
if resource:
|
||||||
|
clear()
|
||||||
|
|
||||||
|
|
||||||
|
func _can_drop_data(p_at_position: Vector2, p_data: Variant) -> bool:
|
||||||
|
drop_data = false
|
||||||
|
if typeof(p_data) == TYPE_DICTIONARY:
|
||||||
|
if p_data.files.size() == 1:
|
||||||
|
queue_redraw()
|
||||||
|
drop_data = true
|
||||||
|
return drop_data
|
||||||
|
|
||||||
|
|
||||||
|
func _drop_data(p_at_position: Vector2, p_data: Variant) -> void:
|
||||||
|
if typeof(p_data) == TYPE_DICTIONARY:
|
||||||
|
var res: Resource = load(p_data.files[0])
|
||||||
|
if res is Texture2D and type == Terrain3DAssets.TYPE_TEXTURE:
|
||||||
|
var ta := Terrain3DTextureAsset.new()
|
||||||
|
if resource is Terrain3DTextureAsset:
|
||||||
|
ta.id = resource.id
|
||||||
|
ta.set_albedo_texture(res)
|
||||||
|
set_edited_resource(ta, false)
|
||||||
|
resource = ta
|
||||||
|
elif res is Terrain3DTextureAsset and type == Terrain3DAssets.TYPE_TEXTURE:
|
||||||
|
if resource is Terrain3DTextureAsset:
|
||||||
|
res.id = resource.id
|
||||||
|
set_edited_resource(res, false)
|
||||||
|
elif res is PackedScene and type == Terrain3DAssets.TYPE_MESH:
|
||||||
|
var ma := Terrain3DMeshAsset.new()
|
||||||
|
if resource is Terrain3DMeshAsset:
|
||||||
|
ma.id = resource.id
|
||||||
|
ma.set_scene_file(res)
|
||||||
|
set_edited_resource(ma, false)
|
||||||
|
resource = ma
|
||||||
|
elif res is Terrain3DMeshAsset and type == Terrain3DAssets.TYPE_MESH:
|
||||||
|
if resource is Terrain3DMeshAsset:
|
||||||
|
res.id = resource.id
|
||||||
|
set_edited_resource(res, false)
|
||||||
|
emit_signal("selected")
|
||||||
|
emit_signal("inspected", resource)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
func set_edited_resource(p_res: Resource, p_no_signal: bool = true) -> void:
|
||||||
|
resource = p_res
|
||||||
|
if resource:
|
||||||
|
resource.setting_changed.connect(_on_resource_changed)
|
||||||
|
resource.file_changed.connect(_on_resource_changed)
|
||||||
|
|
||||||
|
if button_clear:
|
||||||
|
button_clear.set_visible(resource != null)
|
||||||
|
|
||||||
|
queue_redraw()
|
||||||
|
if !p_no_signal:
|
||||||
|
emit_signal("changed", resource)
|
||||||
|
|
||||||
|
|
||||||
|
func _on_resource_changed() -> void:
|
||||||
|
emit_signal("changed", resource)
|
||||||
|
|
||||||
|
|
||||||
|
func set_selected(value: bool) -> void:
|
||||||
|
is_selected = value
|
||||||
|
queue_redraw()
|
||||||
|
|
||||||
|
|
||||||
|
func clear() -> void:
|
||||||
|
if resource:
|
||||||
|
set_edited_resource(null, false)
|
||||||
|
|
||||||
|
|
||||||
|
func edit() -> void:
|
||||||
|
emit_signal("selected")
|
||||||
|
emit_signal("inspected", resource)
|
||||||
93
addons/terrain_3d/src/asset_dock.tscn
Normal file
|
|
@ -0,0 +1,93 @@
|
||||||
|
[gd_scene load_steps=2 format=3 uid="uid://dkb6hii5e48m2"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" path="res://addons/terrain_3d/src/asset_dock.gd" id="1_e23pg"]
|
||||||
|
|
||||||
|
[node name="Terrain3D" type="PanelContainer"]
|
||||||
|
custom_minimum_size = Vector2(256, 95)
|
||||||
|
offset_right = 766.0
|
||||||
|
offset_bottom = 100.0
|
||||||
|
script = ExtResource("1_e23pg")
|
||||||
|
|
||||||
|
[node name="Box" type="BoxContainer" parent="."]
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_vertical = 3
|
||||||
|
vertical = true
|
||||||
|
|
||||||
|
[node name="Buttons" type="BoxContainer" parent="Box"]
|
||||||
|
layout_mode = 2
|
||||||
|
|
||||||
|
[node name="TexturesBtn" type="Button" parent="Box/Buttons"]
|
||||||
|
custom_minimum_size = Vector2(80, 30)
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 3
|
||||||
|
size_flags_vertical = 0
|
||||||
|
theme_override_font_sizes/font_size = 16
|
||||||
|
toggle_mode = true
|
||||||
|
button_pressed = true
|
||||||
|
text = "Textures"
|
||||||
|
|
||||||
|
[node name="MeshesBtn" type="Button" parent="Box/Buttons"]
|
||||||
|
custom_minimum_size = Vector2(80, 30)
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 3
|
||||||
|
size_flags_vertical = 0
|
||||||
|
theme_override_font_sizes/font_size = 16
|
||||||
|
toggle_mode = true
|
||||||
|
text = "Meshes"
|
||||||
|
|
||||||
|
[node name="PlacementOpt" type="OptionButton" parent="Box/Buttons"]
|
||||||
|
custom_minimum_size = Vector2(80, 30)
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 3
|
||||||
|
size_flags_vertical = 0
|
||||||
|
item_count = 9
|
||||||
|
selected = 7
|
||||||
|
popup/item_0/text = "Left_UL"
|
||||||
|
popup/item_0/id = 0
|
||||||
|
popup/item_1/text = "Left_BL"
|
||||||
|
popup/item_1/id = 1
|
||||||
|
popup/item_2/text = "Left_UR"
|
||||||
|
popup/item_2/id = 2
|
||||||
|
popup/item_3/text = "Left_BR"
|
||||||
|
popup/item_3/id = 3
|
||||||
|
popup/item_4/text = "Right_UL"
|
||||||
|
popup/item_4/id = 4
|
||||||
|
popup/item_5/text = "Right_BL "
|
||||||
|
popup/item_5/id = 5
|
||||||
|
popup/item_6/text = "Right_UR"
|
||||||
|
popup/item_6/id = 6
|
||||||
|
popup/item_7/text = "Right_BR"
|
||||||
|
popup/item_7/id = 7
|
||||||
|
popup/item_8/text = "Bottom"
|
||||||
|
popup/item_8/id = 8
|
||||||
|
|
||||||
|
[node name="SizeSlider" type="HSlider" parent="Box/Buttons"]
|
||||||
|
custom_minimum_size = Vector2(80, 10)
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 3
|
||||||
|
min_value = 56.0
|
||||||
|
max_value = 230.0
|
||||||
|
value = 83.0
|
||||||
|
|
||||||
|
[node name="Floating" type="Button" parent="Box/Buttons"]
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 0
|
||||||
|
size_flags_vertical = 0
|
||||||
|
tooltip_text = "Pop this dock out to a floating window."
|
||||||
|
toggle_mode = true
|
||||||
|
text = "F"
|
||||||
|
flat = true
|
||||||
|
|
||||||
|
[node name="Pinned" type="Button" parent="Box/Buttons"]
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 0
|
||||||
|
size_flags_vertical = 0
|
||||||
|
tooltip_text = "Make this window \"Always on top\"."
|
||||||
|
toggle_mode = true
|
||||||
|
text = "P"
|
||||||
|
flat = true
|
||||||
|
|
||||||
|
[node name="ScrollContainer" type="ScrollContainer" parent="Box"]
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 3
|
||||||
|
size_flags_vertical = 3
|
||||||
28
addons/terrain_3d/src/bake_lod_dialog.gd
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
@tool
|
||||||
|
extends ConfirmationDialog
|
||||||
|
|
||||||
|
var lod: int = 0
|
||||||
|
var description: String = ""
|
||||||
|
|
||||||
|
|
||||||
|
func _ready() -> void:
|
||||||
|
set_unparent_when_invisible(true)
|
||||||
|
about_to_popup.connect(_on_about_to_popup)
|
||||||
|
visibility_changed.connect(_on_visibility_changed)
|
||||||
|
%LodBox.value_changed.connect(_on_lod_box_value_changed)
|
||||||
|
|
||||||
|
|
||||||
|
func _on_about_to_popup() -> void:
|
||||||
|
lod = %LodBox.value
|
||||||
|
|
||||||
|
|
||||||
|
func _on_visibility_changed() -> void:
|
||||||
|
# Change text on the autowrap label only when the popup is visible.
|
||||||
|
# Works around Godot issue #47005:
|
||||||
|
# https://github.com/godotengine/godot/issues/47005
|
||||||
|
if visible:
|
||||||
|
%DescriptionLabel.text = description
|
||||||
|
|
||||||
|
|
||||||
|
func _on_lod_box_value_changed(p_value: float) -> void:
|
||||||
|
lod = %LodBox.value
|
||||||