Fix Large Terrain Performance Issues #10
BIN
map_editor.scn (Stored with Git LFS)
BIN
map_editor.scn (Stored with Git LFS)
Binary file not shown.
|
@ -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:
|
||||
kayomn marked this conversation as resolved
|
||||
set(value):
|
||||
|
|
|
@ -5,12 +5,14 @@ const _DETAIL := 2
|
|||
|
||||
const _SHADER := preload("res://terrain/terrain.gdshader")
|
||||
|
||||
##
|
||||
kayomn marked this conversation as resolved
Outdated
kayomn
commented
Is this enum used anywhere anymore? Is this enum used anywhere anymore?
|
||||
## 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:
|
||||
|
|
Loading…
Reference in New Issue
Missing doc comment.