@@ -658,9 +658,13 @@ public class RenderState implements Cloneable, Savable {
**/
public void setPolyOffset(float factor, float units) {
applyPolyOffset = true;
- offsetEnabled = true;
- offsetFactor = factor;
- offsetUnits = units;
+ if (factor == 0 && units == 0) {
+ offsetEnabled = false;
+ } else {
+ offsetEnabled = true;
+ offsetFactor = factor;
+ offsetUnits = units;
+ }
cachedHashCode = -1;
}
@@ -186,7 +186,6 @@ public class HDRRenderer implements SceneProcessor {
blockSize.y / pixelSize.y);
numPixels = blocks.x * blocks.y;
- System.out.println(numPixels);
mat.setBoolean("Blocks", true);
if (mode == LUMMODE_ENCODE_LUM)