Initial
This commit is contained in:
17
shaders/Map Shader.gdshader
Normal file
17
shaders/Map Shader.gdshader
Normal file
@@ -0,0 +1,17 @@
|
||||
shader_type spatial;
|
||||
render_mode cull_disabled;
|
||||
|
||||
uniform sampler2D tileset : filter_nearest;
|
||||
|
||||
void vertex() {
|
||||
// Called for every vertex the material is visible on.
|
||||
}
|
||||
|
||||
void fragment() {
|
||||
vec4 textureColor = texture(tileset, UV);
|
||||
|
||||
if(textureColor.a == 0.0)
|
||||
discard;
|
||||
|
||||
ALBEDO = textureColor.rgb;
|
||||
}
|
Reference in New Issue
Block a user