@EqualityReference public final class KLightSphereWithoutShadowDiffuseOnly extends Object implements KLightSphereType, KLightDiffuseOnlyType
A spherical light emits light from the given location in all directions, with the intensity of the attenuated over distance according to the given falloff value, and is maximally attenuated at the given radius value. The light will not cause specular highlights.
Modifier and Type | Method and Description |
---|---|
<A,E extends Throwable,V extends KLightVisitorType<A,E>> |
lightAccept(V v)
Be visited by the given generic visitor.
|
String |
lightGetCode() |
com.io7m.jtensors.parameterized.PVectorI3F<RSpaceRGBType> |
lightGetColor() |
float |
lightGetFalloff() |
float |
lightGetFalloffInverse() |
float |
lightGetIntensity() |
com.io7m.jtensors.parameterized.PVectorI3F<RSpaceWorldType> |
lightGetPosition() |
float |
lightGetRadius() |
float |
lightGetRadiusInverse() |
KTransformType |
lightGetTransform() |
static KLightSphereWithoutShadowDiffuseOnlyBuilderType |
newBuilder()
Create a builder for creating new spherical lights.
|
static KLightSphereWithoutShadowDiffuseOnly |
newLight(com.io7m.jtensors.parameterized.PVectorI3F<RSpaceRGBType> in_color,
float in_intensity,
com.io7m.jtensors.parameterized.PVectorI3F<RSpaceWorldType> in_position,
float in_radius,
float in_falloff)
Construct a new spherical light.
|
<A,E extends Throwable> |
sphereAccept(KLightSphereVisitorType<A,E> v)
Be visited by the given generic visitor.
|
int |
texturesGetRequired() |
String |
toString() |
public static KLightSphereWithoutShadowDiffuseOnlyBuilderType newBuilder()
Create a builder for creating new spherical lights.
public static KLightSphereWithoutShadowDiffuseOnly newLight(com.io7m.jtensors.parameterized.PVectorI3F<RSpaceRGBType> in_color, float in_intensity, com.io7m.jtensors.parameterized.PVectorI3F<RSpaceWorldType> in_position, float in_radius, float in_falloff)
in_color
- The color.in_intensity
- The intensity.in_position
- The position.in_radius
- The radius.in_falloff
- The falloff.public <A,E extends Throwable,V extends KLightVisitorType<A,E>> A lightAccept(V v) throws E extends Throwable, RException, com.io7m.jcanephora.JCGLException
KLightType
lightAccept
in interface KLightType
A
- The return type of the visitorE
- The type of exceptions raised by the visitorV
- A specific visitor subtypev
- The visitorE
- Iff the visitor raises E
RException
- Iff the visitor raises RException
com.io7m.jcanephora.JCGLException
- Iff the visitor raises JCGLException
.E extends Throwable
public String lightGetCode()
lightGetCode
in interface KLightType
public com.io7m.jtensors.parameterized.PVectorI3F<RSpaceRGBType> lightGetColor()
lightGetColor
in interface KLightPropertiesType
public float lightGetFalloff()
lightGetFalloff
in interface KLightSpherePropertiesType
public float lightGetFalloffInverse()
lightGetFalloffInverse
in interface KLightSpherePropertiesType
KLightSpherePropertiesType.lightGetFalloff()
).public float lightGetIntensity()
lightGetIntensity
in interface KLightPropertiesType
public com.io7m.jtensors.parameterized.PVectorI3F<RSpaceWorldType> lightGetPosition()
lightGetPosition
in interface KLightSpherePropertiesType
public float lightGetRadius()
lightGetRadius
in interface KLightSpherePropertiesType
public float lightGetRadiusInverse()
lightGetRadiusInverse
in interface KLightSpherePropertiesType
KLightSpherePropertiesType.lightGetRadius()
).public KTransformType lightGetTransform()
lightGetTransform
in interface KLightWithTransformType
public <A,E extends Throwable> A sphereAccept(KLightSphereVisitorType<A,E> v) throws RException, E extends Throwable
KLightSphereType
sphereAccept
in interface KLightSphereType
A
- The return type of the visitorE
- The type of exceptions raised by the visitorv
- The visitorRException
- Iff the visitor raises RException
E
- Iff the visitor raises E
E extends Throwable
public int texturesGetRequired()
texturesGetRequired
in interface KTexturesRequiredType
Copyright © 2015 <code@io7m.com> http://io7m.com