@EqualityReference public final class KLightSphereTexturedCubeWithoutShadow extends Object implements KLightSphereType
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.
Light values are sampled from a cube map using the light-to-surface direction and multiplied with the given base color.
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() |
com.io7m.jcanephora.TextureCubeStaticUsableType |
lightGetTexture() |
com.io7m.jtensors.QuaternionI4F |
lightGetTextureOrientation() |
KTransformType |
lightGetTransform() |
static KLightSphereTexturedCubeWithoutShadowBuilderType |
newBuilder(com.io7m.jcanephora.TextureCubeStaticUsableType in_texture)
Create a builder for creating new spherical lights.
|
static KLightSphereTexturedCubeWithoutShadow |
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,
com.io7m.jcanephora.TextureCubeStaticUsableType in_texture,
com.io7m.jtensors.QuaternionI4F in_orientation)
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 KLightSphereTexturedCubeWithoutShadowBuilderType newBuilder(com.io7m.jcanephora.TextureCubeStaticUsableType in_texture)
Create a builder for creating new spherical lights.
in_texture
- The cube texture.public static KLightSphereTexturedCubeWithoutShadow 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, com.io7m.jcanephora.TextureCubeStaticUsableType in_texture, com.io7m.jtensors.QuaternionI4F in_orientation)
in_color
- The color.in_intensity
- The intensity.in_position
- The position.in_radius
- The radius.in_falloff
- The falloff.in_texture
- The cube texture.in_orientation
- The texture orientation.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 com.io7m.jcanephora.TextureCubeStaticUsableType lightGetTexture()
public com.io7m.jtensors.QuaternionI4F lightGetTextureOrientation()
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