15 lines
339 B
Plaintext
15 lines
339 B
Plaintext
|
|
shader_type spatial;
|
||
|
|
render_mode depth_test_disabled;
|
||
|
|
|
||
|
|
uniform sampler2D default_texture: hint_default_white;
|
||
|
|
|
||
|
|
void vertex() {
|
||
|
|
// Called for every vertex the material is visible on.
|
||
|
|
}
|
||
|
|
|
||
|
|
void fragment() {
|
||
|
|
ALBEDO = texture(default_texture, UV).xyz;
|
||
|
|
ALPHA = texture(default_texture, UV).w;
|
||
|
|
EMISSION = COLOR.xyz * pow(ALBEDO, vec3(2.2));
|
||
|
|
}
|