first examples
This commit is contained in:
parent
a01a7a7acc
commit
2219e943da
33 changed files with 785 additions and 6 deletions
16
shaders/000_playground/playground.gd
Normal file
16
shaders/000_playground/playground.gd
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
@tool
|
||||
extends Node3D
|
||||
|
||||
@export var my_variable: float = 1.0:
|
||||
set(value):
|
||||
my_variable = value
|
||||
shader_material.set_shader_parameter("my_variable", value)
|
||||
|
||||
@onready var shader_material = $MeshInstance3D.mesh.material
|
||||
|
||||
func _ready() -> void:
|
||||
print(shader_material)
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue