Files
puzzle-quest/assets/props/parchment/materials/MA_PaperParchment.material
T

40 lines
1.3 KiB
Plaintext
Raw Normal View History

RSRCShaderMaterialÿÿÿÿÿÿÿÿ
resource_local_to_sceneresource_namecodescriptrender_priority
next_passshadershader_parameter/tex_frg_2shader_parameter/tex_frg_4shader_parameter/tex_frg_3local://Shader_7e5e5²Bres://assets/props/parchment/materials/MA_PaperParchment.material¯ShaderÚshader_type spatial;
render_mode blend_mix, depth_draw_always, depth_test_default, cull_disabled, diffuse_lambert, specular_schlick_ggx;
uniform sampler2D tex_frg_2 : source_color;
uniform sampler2D tex_frg_4;
uniform sampler2D tex_frg_3 : hint_normal;
void fragment() {
// Texture2D:2
vec4 n_out2p0 = texture(tex_frg_2, UV);
// Texture2D:4
vec4 n_out4p0 = texture(tex_frg_4, UV);
// VectorDecompose:5
float n_out5p0 = vec3(n_out4p0.xyz).x;
float n_out5p1 = vec3(n_out4p0.xyz).y;
float n_out5p2 = vec3(n_out4p0.xyz).z;
// Texture2D:3
vec4 n_out3p0 = texture(tex_frg_3, UV);
// Output:0
ALBEDO = vec3(n_out2p0.xyz);
METALLIC = n_out5p2;
ROUGHNESS = n_out5p1;
AO = n_out5p0;
NORMAL = vec3(n_out3p0.xyz);
}
ShaderMaterial RSRC