EG/RenderPipelineFile/effects/lui_world_ui.yaml
2026-05-25 14:07:58 +08:00

29 lines
774 B
YAML

# Scene-space effect for world-space LUI canvas textures.
fragment:
defines: |
#define DONT_FETCH_DEFAULT_TEXTURES 1
#define DONT_SET_MATERIAL_PROPERTIES 1
inout: |
uniform sampler2D p3d_Texture0;
material: |
vec4 lui_color = texture(p3d_Texture0, texcoord);
if (lui_color.a <= 0.001) {
discard;
}
#if IN_FORWARD_SHADER
color_result = lui_color;
return;
#else
m.shading_model = SHADING_MODEL_DEFAULT;
m.basecolor = lui_color.rgb;
m.normal = normalize(vOutput.normal);
m.roughness = 0.65;
m.specular_ior = 1.45;
m.metallic = 0.0;
m.shading_model_param0 = 0.0;
#endif