mirror of
https://github.com/bvanroll/pogo.git
synced 2025-12-12 12:06:08 +00:00
mmm
This commit is contained in:
22
node_3d.gdshader
Normal file
22
node_3d.gdshader
Normal file
@@ -0,0 +1,22 @@
|
||||
shader_type spatial;
|
||||
|
||||
uniform float u_time;
|
||||
|
||||
void vertex() {
|
||||
// Called for every vertex the material is visible on.
|
||||
}
|
||||
|
||||
void fragment() {
|
||||
// Called for every pixel the material is visible on.
|
||||
vec2 st = FRAGCOORD.xy;
|
||||
float r = sin(st.x * .003 + TIME);
|
||||
float g = sin(st.y * .003 + TIME);
|
||||
float b = cos(r/g);
|
||||
|
||||
ALBEDO = vec3(r, g, b);
|
||||
}
|
||||
|
||||
//void light() {
|
||||
// Called for every pixel for every light affecting the material.
|
||||
// Uncomment to replace the default light processing function with this one.
|
||||
//}
|
||||
Reference in New Issue
Block a user