@EqualityReference public final class KMaterialRefractiveMaskedNormals extends Object implements KMaterialRefractiveType
Modifier and Type | Method and Description |
---|---|
String |
codeGet() |
static KMaterialRefractiveMaskedNormals |
create(float in_scale,
com.io7m.jtensors.VectorReadable4FType in_color)
Construct new material properties.
|
com.io7m.jtensors.VectorReadable4FType |
getColor() |
float |
getScale() |
boolean |
materialRequiresUVCoordinates() |
<A,E extends Throwable,V extends KMaterialRefractiveVisitorType<A,E>> |
refractiveAccept(V v)
Be visited by the given generic visitor.
|
int |
texturesGetRequired() |
String |
toString() |
public static KMaterialRefractiveMaskedNormals create(float in_scale, com.io7m.jtensors.VectorReadable4FType in_color)
in_scale
- The scale of refraction.in_color
- The color by which to multiply the refracted scene.public String codeGet()
codeGet
in interface KMaterialCodeType
public float getScale()
public com.io7m.jtensors.VectorReadable4FType getColor()
public boolean materialRequiresUVCoordinates()
materialRequiresUVCoordinates
in interface KMaterialRequiresUVType
true
if the material requires UV coordinates for
rendering.public <A,E extends Throwable,V extends KMaterialRefractiveVisitorType<A,E>> A refractiveAccept(V v) throws E extends Throwable, RException
KMaterialRefractiveType
refractiveAccept
in interface KMaterialRefractiveType
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