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,14 @@
shader_type spatial;
// To send data from the vertex to the fragment (or light) processor function,
// varyings are used. They are set for every primitive vertex in the vertex processor,
// and the value is interpolated for every pixel in the fragment processor.
varying vec3 color;
void vertex() {
color = NORMAL;
}
void fragment() {
ALBEDO = color;
}