From 257127aa7f0fbb66ddd2600dd3d6a6aca60e56b8 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Tue, 22 Oct 2024 22:36:05 +0200 Subject: initial commit --- new_shader.gdshader | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 new_shader.gdshader (limited to 'new_shader.gdshader') diff --git a/new_shader.gdshader b/new_shader.gdshader new file mode 100644 index 0000000..32b1f7c --- /dev/null +++ b/new_shader.gdshader @@ -0,0 +1,20 @@ +shader_type spatial; + +uniform sampler2DArray textures : filter_nearest, source_color; + +void vertex() { + // Called for every vertex the material is visible on. + //vec4 element = texture(textures, vec3(UV, UV2.x)); + //COLOR = element.rgba; +} + +void fragment() { + // Called for every pixel the material is visible on. + vec4 element = texture(textures, vec3(UV, UV2.x)); + ALBEDO = element.rgb; +} + +//void light() { + // Called for every pixel for every light affecting the material. + // Uncomment to replace the default light processing function with this one. +//} -- cgit v1.2.3