@Override public void setColor (float r, float g, float b, float a) { color.set(r, g, b, a); hasColor = !color.equals(Color.WHITE); }
@Override public void setColor (float r, float g, float b, float a) { color.set(r, g, b, a); hasColor = !color.equals(Color.WHITE); }
public boolean equals (PointLight other) { return (other != null && (other == this || (color.equals(other.color) && position.equals(other.position) && intensity == other.intensity))); } }
public boolean equals (PointLight other) { return (other != null && (other == this || (color.equals(other.color) && position.equals(other.position) && intensity == other.intensity))); } }
public boolean equals (final DirectionalLight other) { return (other != null) && ((other == this) || ((color.equals(other.color) && direction.equals(other.direction)))); } }
public boolean equals (final DirectionalLight other) { return (other != null) && ((other == this) || ((color.equals(other.color) && direction.equals(other.direction)))); } }
public boolean equals (SpotLight other) { return (other != null && (other == this || (color.equals(other.color) && position.equals(other.position) && direction.equals(other.direction) && MathUtils.isEqual(intensity, other.intensity) && MathUtils.isEqual(cutoffAngle, other.cutoffAngle) && MathUtils.isEqual(exponent, other.exponent) ))); } }
public boolean equals (SpotLight other) { return (other != null && (other == this || (color.equals(other.color) && position.equals(other.position) && direction.equals(other.direction) && MathUtils.isEqual(intensity, other.intensity) && MathUtils.isEqual(cutoffAngle, other.cutoffAngle) && MathUtils.isEqual(exponent, other.exponent) ))); } }
public boolean equals (final DirectionalLight other) { return (other != null) && ((other == this) || ((color.equals(other.color) && direction.equals(other.direction)))); } }
@Override public void setColor (float r, float g, float b, float a) { color.set(r, g, b, a); hasColor = !color.equals(Color.WHITE); }
public boolean equals (PointLight other) { return (other != null && (other == this || (color.equals(other.color) && position.equals(other.position) && intensity == other.intensity))); } }
public boolean equals (SpotLight other) { return (other != null && (other == this || (color.equals(other.color) && position.equals(other.position) && direction.equals(other.direction) && MathUtils.isEqual(intensity, other.intensity) && MathUtils.isEqual(cutoffAngle, other.cutoffAngle) && MathUtils.isEqual(exponent, other.exponent) ))); } }
if (tint != null && !tint.equals(color)) { color.set(tint);