palette textures! working with palettes will be a breezegit status!
This commit is contained in:
parent
7974ac26c4
commit
f1ad9d5825
10 changed files with 65 additions and 8 deletions
|
@ -2,5 +2,5 @@ extends HBoxContainer
|
|||
|
||||
|
||||
func _ready() -> void:
|
||||
var palette = load("res://graphics/player/palettes/%s.png" % Game.current_palette)
|
||||
var palette = load("res://graphics/player/palettes/%s.tex" % Game.current_palette)
|
||||
$Panel/TextureRect.material.set_shader_param("palette", palette)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
extends TextureRect
|
||||
|
||||
func _ready():
|
||||
var palette = load("res://graphics/player/palettes/%s.png" % Game.current_palette)
|
||||
var palette = load("res://graphics/player/palettes/%s.tex" % Game.current_palette)
|
||||
material.set_shader_param("palette", palette)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue