Values no longer clamp, Fixed gl bug with cameras

This commit is contained in:
Rigamortis 2019-12-17 17:32:57 -09:00
parent 7b3af30c6b
commit 9568251ef6
2 changed files with 3 additions and 1 deletions

View File

@ -53,6 +53,7 @@ public class Camera {
GlStateManager.disableLighting();
GlStateManager.disableAlpha();
GlStateManager.disableBlend();
GlStateManager.enableColorMaterial();
GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
frameBuffer.bindFramebufferTexture();

View File

@ -52,7 +52,8 @@ public class Value<T> {
final Number val = (Number) value;
final Number min = (Number) this.min;
final Number max = (Number) this.max;
this.value = (T) this.clamp(val, min, max);
this.value = (T) val;
//this.value = (T) this.clamp(val, min, max);
} else {
this.value = value;
}