@EqualityReference public final class KMaterialRefractiveUnmaskedDeltaTextured extends Object implements KMaterialRefractiveType
Modifier and Type | Method and Description |
---|---|
String |
codeGet() |
static KMaterialRefractiveUnmaskedDeltaTextured |
create(float in_scale,
com.io7m.jcanephora.Texture2DStaticUsableType in_texture,
com.io7m.jtensors.VectorReadable4FType in_color)
Construct new material properties.
|
com.io7m.jtensors.VectorReadable4FType |
getColor() |
float |
getScale() |
com.io7m.jcanephora.Texture2DStaticUsableType |
getTexture() |
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 KMaterialRefractiveUnmaskedDeltaTextured create(float in_scale, com.io7m.jcanephora.Texture2DStaticUsableType in_texture, com.io7m.jtensors.VectorReadable4FType in_color)
in_scale
- The scale of refraction.in_texture
- The RG texture used to offset pixels for refraction.in_color
- The color by which to multiply the refracted scene.public String codeGet()
codeGet
in interface KMaterialCodeType
public com.io7m.jtensors.VectorReadable4FType getColor()
public float getScale()
public com.io7m.jcanephora.Texture2DStaticUsableType getTexture()
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