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)
|
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:
|
||||||
kayomn marked this conversation as resolved
|
|||||||
set(value):
|
set(value):
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Missing doc comment.