- string source = "import unlit;\n";
- if(texture)
- source += "const bool use_texture = true;\n";
- if(vertex_color)
- source += "const bool use_vertex_color = true;\n";
- return source;
+ module_name = "unlit.glsl";
+ spec_values["use_texture"] = (texture!=0);
+ spec_values["use_vertex_color"] = vertex_color;