14 lines
433 B
Plaintext
14 lines
433 B
Plaintext
|
// NOTE: Shader automatically converted from Godot Engine 4.2.stable's StandardMaterial3D.
|
||
|
|
||
|
shader_type spatial;
|
||
|
render_mode cull_back, unshaded;
|
||
|
uniform vec4 albedo : source_color;
|
||
|
uniform sampler2D texture_albedo : source_color,filter_linear_mipmap,repeat_enable;
|
||
|
|
||
|
void fragment() {
|
||
|
vec2 base_uv = UV;
|
||
|
vec4 albedo_tex = texture(texture_albedo,base_uv);
|
||
|
ALBEDO = albedo.rgb * albedo_tex.rgb;
|
||
|
ALPHA *= albedo.a * albedo_tex.a;
|
||
|
}
|