Editor Terrain Brush #2

Merged
kayomn merged 27 commits from editor-terrain-brush into main 2023-01-19 01:51:25 +01:00
Owner

Fixes:

  • Editor brush not scaling properly with respect to set brush radius.

  • Terrain brush editing remaining active after the terrain toolbox has been minimized.

Adds:

  • Way to change textures used by color channels under the "Texturing" section of the "Terrain Toolbox".

  • Support for raster-based terrain brush masks, with a basic "soft" and "hard" circular brush for now.

  • TerrainMaterial resource type for easier interaction when setting up materials on a TerrainInstance in-editor and in-script.

Fixes: * [x] Editor brush not scaling properly with respect to set brush radius. * [x] Terrain brush editing remaining active after the terrain toolbox has been minimized. Adds: * [x] Way to change textures used by color channels under the "Texturing" section of the "Terrain Toolbox". * [x] Support for raster-based terrain brush masks, with a basic "soft" and "hard" circular brush for now. * ~~`TerrainMaterial` resource type for easier interaction when setting up materials on a `TerrainInstance` in-editor and in-script.~~
kayomn self-assigned this 2023-01-12 02:39:31 +01:00
kayomn added this to the Editor Iteration 1 milestone 2023-01-12 02:39:34 +01:00
Author
Owner

Work to fix brush mode always being active should also be included as part of this PR, as that is going to be needed sooner rather than later.

Work to fix brush mode always being active should also be included as part of this PR, as that is going to be needed sooner rather than later.
kayomn added 1 commit 2023-01-12 16:47:53 +01:00
Author
Owner

A regression has been spotted with terrain sampling that was introduced in #1. Fixing that as part of this PR.

A regression has been spotted with terrain sampling that was introduced in #1. Fixing that as part of this PR.
kayomn added 2 commits 2023-01-12 16:59:11 +01:00
kayomn added 1 commit 2023-01-12 17:05:30 +01:00
kayomn added 1 commit 2023-01-12 17:52:43 +01:00
Author
Owner

Not possible to support TerrainMaterial instances at this time due to a 4.0 engine limitation with using signals in setters.

Not possible to support `TerrainMaterial` instances at this time due to a 4.0 engine limitation with using signals in setters.
kayomn added 1 commit 2023-01-13 01:36:23 +01:00
kayomn added 1 commit 2023-01-13 01:46:19 +01:00
kayomn added 2 commits 2023-01-13 11:09:06 +01:00
kayomn added 1 commit 2023-01-13 18:30:56 +01:00
kayomn added 2 commits 2023-01-13 19:15:14 +01:00
kayomn added 3 commits 2023-01-16 02:43:34 +01:00
kayomn added 3 commits 2023-01-16 19:54:21 +01:00
kayomn added 2 commits 2023-01-17 00:49:07 +01:00
kayomn added 1 commit 2023-01-17 16:22:25 +01:00
kayomn added 1 commit 2023-01-17 16:29:49 +01:00
kayomn added 1 commit 2023-01-17 17:42:02 +01:00
kayomn added 1 commit 2023-01-17 17:44:31 +01:00
kayomn added 2 commits 2023-01-18 18:15:53 +01:00
kayomn reviewed 2023-01-18 18:29:32 +01:00
@ -0,0 +33,4 @@
##
##
##
func oscillate(point: Vector2i, level: float,
Author
Owner

Missing doc comment.

Missing doc comment.
kayomn marked this conversation as resolved
@ -0,0 +62,4 @@
##
##
##
func paint(point: Vector2i, color: Color,
Author
Owner

Missing doc comment.

Missing doc comment.
kayomn marked this conversation as resolved
@ -0,0 +95,4 @@
##
##
##
func resize(size: Vector2i) -> void:
Author
Owner

Missing doc comment.

Missing doc comment.
kayomn marked this conversation as resolved
@ -0,0 +4,4 @@
##
##
@export
var albedo_map: Texture2D = null
Author
Owner

Missing doc comment.

Missing doc comment.
kayomn marked this conversation as resolved
@ -0,0 +10,4 @@
##
##
@export
var normal_map: Texture2D = null
Author
Owner

Missing doc comment.

Missing doc comment.
kayomn marked this conversation as resolved
Author
Owner

Also worth further splitting up the logic contained in the editor scene as its root script is still fairly monolithic at close to 400 lines.

Also worth further splitting up the logic contained in the editor scene as its root script is still fairly monolithic at close to 400 lines.
kayomn added 1 commit 2023-01-19 01:49:53 +01:00
kayomn changed title from WIP: Editor Terrain Brush to Editor Terrain Brush 2023-01-19 01:51:19 +01:00
kayomn merged commit e72698ffcd into main 2023-01-19 01:51:25 +01:00
kayomn deleted branch editor-terrain-brush 2023-01-19 01:51:25 +01:00
Sign in to join this conversation.
No reviewers
No Label
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: protectorate/game#2
No description provided.