Amend code review comments

This commit is contained in:
kayomn 2023-01-23 20:29:43 +00:00
parent 10ee4f93f5
commit aa97badf69
3 changed files with 7 additions and 5 deletions

BIN
map_editor.scn (Stored with Git LFS)

Binary file not shown.

View File

@ -10,7 +10,7 @@ var _editable_image := Image.create(1, 1, false, Image.FORMAT_RGBAF)
var _editable_texture := ImageTexture.create_from_image(_editable_image) var _editable_texture := ImageTexture.create_from_image(_editable_image)
## ##
## ## Width and height of the canvas (in pixels).
## ##
var size := Vector2i.ONE: var size := Vector2i.ONE:
set(value): set(value):

View File

@ -5,12 +5,14 @@ const _DETAIL := 2
const _SHADER := preload("res://terrain/terrain.gdshader") const _SHADER := preload("res://terrain/terrain.gdshader")
##
## Slots representing the paintable channels.
##
enum PaintSlot { enum PaintSlot {
ERASE, ERASE,
RED, RED,
GREEN, GREEN,
BLUE, BLUE,
ALPHA,
} }
var _albedo_maps: Array[Texture2D] = [null, null, null, null] 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] 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 @export
var height_scale := 100.0: var height_scale := 100.0: