4 struct UnlitMaterialParameters
9 layout(set=1) uniform UnlitMaterial
11 UnlitMaterialParameters unlit_material;
12 AlphaCutoffParams alpha_cutoff;
15 layout(set=1) uniform sampler2D color_tex;
17 layout(constant_id=auto) const bool use_texture = false;
18 layout(constant_id=auto) const bool use_vertex_color = false;
19 layout(constant_id=auto) const bool use_fog = false;
21 #pragma MSP stage(fragment)
22 virtual vec4 get_color()
24 vec4 result = unlit_material.color;
26 result *= texture(color_tex, texcoord.xy);
34 vec4 color = get_color();
35 color.a = apply_alpha_cutoff(color.a, alpha_cutoff);
38 color.rgb = apply_fog(color.rgb);