|
@@ -755,13 +755,13 @@ synthesize_shader(const RenderState *rs) {
|
|
|
text << "\t // Begin model-space light summation\n";
|
|
text << "\t // Begin model-space light summation\n";
|
|
|
if (_have_emission) {
|
|
if (_have_emission) {
|
|
|
if (_map_index_glow >= 0) {
|
|
if (_map_index_glow >= 0) {
|
|
|
- text << "\t result = attr_material[2] * tex" << _map_index_glow << ".a;\n";
|
|
|
|
|
|
|
+ text << "\t result = attr_material[2] * saturate(2 * (tex" << _map_index_glow << ".a - 0.5));\n";
|
|
|
} else {
|
|
} else {
|
|
|
text << "\t result = attr_material[2];\n";
|
|
text << "\t result = attr_material[2];\n";
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
if (_map_index_glow >= 0) {
|
|
if (_map_index_glow >= 0) {
|
|
|
- text << "\t result = tex" << _map_index_glow << ".aaaa;\n";
|
|
|
|
|
|
|
+ text << "\t result = saturate(2 * (tex" << _map_index_glow << ".a - 0.5));\n";
|
|
|
} else {
|
|
} else {
|
|
|
text << "\t result = float4(0,0,0,0);\n";
|
|
text << "\t result = float4(0,0,0,0);\n";
|
|
|
}
|
|
}
|