21 lines
725 B
Plaintext
21 lines
725 B
Plaintext
|
[gd_resource type="ShaderMaterial" load_steps=2 format=3 uid="uid://ck8h6dvojuegj"]
|
||
|
|
||
|
[sub_resource type="Shader" id="Shader_eumy4"]
|
||
|
code = "shader_type spatial;
|
||
|
render_mode blend_mix,depth_draw_opaque,cull_back,unshaded;
|
||
|
uniform sampler2D texture_albedo : source_color,filter_linear_mipmap,repeat_enable;
|
||
|
uniform sampler2D lightmap_albedo : source_color,filter_linear_mipmap,repeat_enable;
|
||
|
uniform float lightmap_modulation;
|
||
|
|
||
|
void fragment() {
|
||
|
vec4 albedo_tex = texture(texture_albedo,UV);
|
||
|
vec4 lightmap_tex = texture(lightmap_albedo,UV2) * lightmap_modulation;
|
||
|
ALBEDO = albedo_tex.rgb * lightmap_tex.rgb;
|
||
|
}
|
||
|
"
|
||
|
|
||
|
[resource]
|
||
|
render_priority = 0
|
||
|
shader = SubResource("Shader_eumy4")
|
||
|
shader_parameter/lightmap_modulation = 1.0
|