first examples
This commit is contained in:
parent
a01a7a7acc
commit
2219e943da
33 changed files with 785 additions and 6 deletions
14
shaders/008_normals/normals.gdshader
Normal file
14
shaders/008_normals/normals.gdshader
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue