first examples

This commit is contained in:
Luca 2024-12-19 14:04:09 +01:00
parent a01a7a7acc
commit 2219e943da
33 changed files with 785 additions and 6 deletions

View file

@ -0,0 +1,5 @@
shader_type spatial;
void fragment() {
ALBEDO = vec3(0.1, 0.2, 0.6);
}

View file

@ -0,0 +1,15 @@
[gd_scene load_steps=4 format=3 uid="uid://o76dbkg8478j"]
[ext_resource type="Shader" path="res://shaders/001_change_color/change_color.gdshader" id="1_d0kbx"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_yrrhw"]
render_priority = 0
shader = ExtResource("1_d0kbx")
[sub_resource type="SphereMesh" id="SphereMesh_16ni7"]
material = SubResource("ShaderMaterial_yrrhw")
[node name="ChangeColor" type="Node3D"]
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
mesh = SubResource("SphereMesh_16ni7")