fix: repair jajce beauty asset pipeline
This commit is contained in:
@@ -16,6 +16,7 @@ func _generate() -> void:
|
||||
_generate_texture("grass_albedo.png", Color("#516f36"), Color("#79924c"), 17)
|
||||
_generate_texture("soil_albedo.png", Color("#65513b"), Color("#92734d"), 29)
|
||||
_generate_texture("rock_albedo.png", Color("#55534f"), Color("#89847b"), 43)
|
||||
_generate_neutral_normal()
|
||||
|
||||
var terrain := Terrain3D.new()
|
||||
terrain.region_size = 256
|
||||
@@ -82,3 +83,13 @@ func _generate_texture(
|
||||
var error := image.save_png(path)
|
||||
if error != OK:
|
||||
push_error("Could not write terrain texture: " + path)
|
||||
|
||||
|
||||
func _generate_neutral_normal() -> void:
|
||||
var image := Image.create_empty(256, 256, false, Image.FORMAT_RGBA8)
|
||||
image.fill(Color(0.5, 0.5, 1.0, 0.86))
|
||||
image.generate_mipmaps()
|
||||
var path := TEXTURE_DIRECTORY.path_join("neutral_normal.png")
|
||||
var error := image.save_png(path)
|
||||
if error != OK:
|
||||
push_error("Could not write terrain normal texture: " + path)
|
||||
|
||||
Reference in New Issue
Block a user