Files
godot-tests/tests/test_project/custom_shader.gdshader
Hugo Locurcio 75700f5c79 Add test project export for CI
This is a new testing project (not to be confused with the existing
`test_project` which has a smaller scope).

It's intended to cover a sizeable ground of Godot functionality on CI.
This includes headless exporting, as well as ensuring a visual match
between running the project from its folder and the exported PCK.
2025-11-25 17:57:17 +01:00

15 lines
286 B
Plaintext

shader_type spatial;
global uniform vec3 offset;
instance uniform vec3 emission : source_color = vec3(1.0, 0.0, 0.0);
uniform vec3 color : source_color = vec3(1.0, 0.0, 0.0);
void vertex() {
VERTEX.xyz += offset;
}
void fragment() {
ALBEDO = color.rgb;
EMISSION = emission.rgb;
}