@EqualityReference public final class KMaterialSpecularConstant extends Object implements KMaterialSpecularNotNoneType
Modifier and Type | Method and Description |
---|---|
String |
codeGet() |
static KMaterialSpecularConstant |
constant(com.io7m.jtensors.parameterized.PVectorI3F<RSpaceRGBType> in_color,
float in_exponent)
Construct new specular properties.
|
com.io7m.jtensors.parameterized.PVectorI3F<RSpaceRGBType> |
getColor() |
float |
getExponent() |
boolean |
materialRequiresUVCoordinates() |
<A,E extends Throwable,V extends KMaterialSpecularVisitorType<A,E>> |
specularAccept(V v)
Be visited by the given generic visitor.
|
<A,E extends Throwable,V extends KMaterialSpecularNotNoneVisitorType<A,E>> |
specularNotNoneAccept(V v)
Be visited by the given generic visitor.
|
int |
texturesGetRequired() |
String |
toString() |
public static KMaterialSpecularConstant constant(com.io7m.jtensors.parameterized.PVectorI3F<RSpaceRGBType> in_color, float in_exponent)
in_color
- The global surface specular color.in_exponent
- The specularity exponent.public String codeGet()
codeGet
in interface KMaterialCodeType
public com.io7m.jtensors.parameterized.PVectorI3F<RSpaceRGBType> getColor()
public float getExponent()
public boolean materialRequiresUVCoordinates()
materialRequiresUVCoordinates
in interface KMaterialRequiresUVType
true
if the material requires UV coordinates for
rendering.public <A,E extends Throwable,V extends KMaterialSpecularVisitorType<A,E>> A specularAccept(V v) throws E extends Throwable, RException
KMaterialSpecularType
specularAccept
in interface KMaterialSpecularType
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
E extends Throwable
public <A,E extends Throwable,V extends KMaterialSpecularNotNoneVisitorType<A,E>> A specularNotNoneAccept(V v) throws E extends Throwable, RException
KMaterialSpecularNotNoneType
specularNotNoneAccept
in interface KMaterialSpecularNotNoneType
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
E extends Throwable
public int texturesGetRequired()
texturesGetRequired
in interface KTexturesRequiredType
Copyright © 2015 <code@io7m.com> http://io7m.com