AltParty2024/assets/shaders/ShapeDanceShapes.gdshader

17 lines
327 B
Text
Raw Normal View History

2024-10-01 17:29:36 +03:00
shader_type spatial;
render_mode unshaded;
instance uniform int id;
void vertex() {
// Called for every vertex the material is visible on.
}
void fragment() {
ALBEDO = vec3(cos(TIME + float(id) * 0.01), sin(TIME + float(id) * 0.01), tan(TIME + float(id) * 0.01));
}
void light() {
DIFFUSE_LIGHT = vec3(1.0, 1.0, 1.0);
}