new battery model with shaders
This commit is contained in:
17
Shaders/battery_glass.gdshader
Normal file
17
Shaders/battery_glass.gdshader
Normal file
@@ -0,0 +1,17 @@
|
||||
shader_type spatial;
|
||||
uniform sampler2D normal;
|
||||
uniform sampler2D color;
|
||||
void vertex() {
|
||||
// Called for every vertex the material is visible on.
|
||||
}
|
||||
|
||||
void fragment() {
|
||||
ALBEDO = vec3(0.1,0.1,0.1);
|
||||
NORMAL = texture(normal,UV).rgb;
|
||||
ALPHA = 0.4;
|
||||
}
|
||||
|
||||
//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