Use different naming for fullbright, and always reset it back after setting it.

This commit is contained in:
Sebastian Hartte
2020-08-16 14:05:10 +02:00
parent 73735c5cd5
commit ee67c5ea50
8 changed files with 45 additions and 21 deletions
@@ -49,7 +49,7 @@ public class P2PTunnelFrequencyBakedModel implements IDynamicBakedModel {
cb.setTexture(this.texture);
cb.useStandardUV();
cb.setRenderFullBright(active);
cb.setEmissiveMaterial(active);
for (int i = 0; i < 4; ++i) {
final int[] offs = QUAD_OFFSETS[i];
@@ -70,6 +70,10 @@ public class P2PTunnelFrequencyBakedModel implements IDynamicBakedModel {
}
}
// Reset back to default
cb.setEmissiveMaterial(false);
return cb.getOutput();
}