From aa97badf69629de869a8e4f9cb465993f2ac70d4 Mon Sep 17 00:00:00 2001 From: kayomn Date: Mon, 23 Jan 2023 20:29:43 +0000 Subject: [PATCH] Amend code review comments --- map_editor.scn | 4 ++-- map_editor/map_editor_terrain_canvas.gd | 2 +- terrain/terrain_instance_3d.gd | 6 ++++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/map_editor.scn b/map_editor.scn index 1611d93..83175e8 100644 --- a/map_editor.scn +++ b/map_editor.scn @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:6518314ef3302e8eda9940a3f03055c526bd8eda4eef7cbaf944ebdba7af8512 -size 8130 +oid sha256:8e73d6aa54582b9c13a7308c534d1d456c626f4a463c8b907b86040ce0d56f04 +size 8194 diff --git a/map_editor/map_editor_terrain_canvas.gd b/map_editor/map_editor_terrain_canvas.gd index 69e3ca8..3d1a0a2 100644 --- a/map_editor/map_editor_terrain_canvas.gd +++ b/map_editor/map_editor_terrain_canvas.gd @@ -10,7 +10,7 @@ var _editable_image := Image.create(1, 1, false, Image.FORMAT_RGBAF) var _editable_texture := ImageTexture.create_from_image(_editable_image) ## -## +## Width and height of the canvas (in pixels). ## var size := Vector2i.ONE: set(value): diff --git a/terrain/terrain_instance_3d.gd b/terrain/terrain_instance_3d.gd index 544f395..4e4cefe 100644 --- a/terrain/terrain_instance_3d.gd +++ b/terrain/terrain_instance_3d.gd @@ -5,12 +5,14 @@ const _DETAIL := 2 const _SHADER := preload("res://terrain/terrain.gdshader") +## +## Slots representing the paintable channels. +## enum PaintSlot { ERASE, RED, GREEN, BLUE, - ALPHA, } var _albedo_maps: Array[Texture2D] = [null, null, null, null] @@ -22,7 +24,7 @@ var _mesh := PlaneMesh.new() var _normal_maps: Array[Texture2D] = [null, null, null, null] ## -## +## Range of the height channel value, ranging from [code]0.0[/code] to [code]100.0[/code]. ## @export var height_scale := 100.0: