4 struct UnlitMaterialParameters
11 UnlitMaterialParameters unlit_material;
14 uniform sampler2D color_tex;
16 layout(constant_id=auto) const bool use_texture = false;
17 layout(constant_id=auto) const bool use_vertex_color = false;
18 layout(constant_id=auto) const bool use_fog = false;
20 #pragma MSP stage(fragment)
21 virtual vec4 get_color()
23 vec4 result = unlit_material.color;
25 result *= texture(color_tex, texcoord.xy);
33 vec4 color = get_color();
35 color.rgb = apply_fog(color.rgb);