Files
project-thor/Shaders/outline.gdshader
Nikolai Fesenko 7ba255334d new item model and interactions
person can hold item now. Global can give item to person.
2025-08-18 01:33:54 +02:00

24 lines
471 B
Plaintext

shader_type spatial;
render_mode cull_front, unshaded;
uniform bool is_active;
uniform vec3 color = vec3(0.95, 0.71, 0.01);
const float thickness = 0.1;
void vertex() {
if(is_active) {
VERTEX += NORMAL * thickness;
}
}
void fragment() {
if (is_active) {
ALBEDO = color;
ALPHA = 0.5;
}
}
//void light() {
// // Called for every pixel for every light affecting the material.
// // Uncomment to replace the default light processing function with this one.
//}