new battery model with shaders
This commit is contained in:
22
Shaders/Fuse.gdshader
Normal file
22
Shaders/Fuse.gdshader
Normal file
@@ -0,0 +1,22 @@
|
||||
shader_type spatial;
|
||||
uniform sampler2D noise;
|
||||
void vertex() {
|
||||
// Called for every vertex the material is visible on.
|
||||
}
|
||||
|
||||
void fragment() {
|
||||
//ALBEDO = vec3(0.000275,0.0,0.665027);
|
||||
EMISSION = vec3(0.0,0.0,1.0);
|
||||
if( TIME < 1800.0 ) {
|
||||
ALBEDO = texture(noise,UV + TIME / 5.0).rgb;
|
||||
}
|
||||
else {
|
||||
ALBEDO = texture(noise,UV - TIME).rgb;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//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