@EqualityReference public final class KMaterialEnvironmentReflection extends Object implements KMaterialEnvironmentType
Modifier and Type | Method and Description |
---|---|
String |
codeGet() |
<A,E extends Throwable,V extends KMaterialEnvironmentVisitorType<A,E>> |
environmentAccept(V v)
Be visited by the given generic visitor.
|
float |
getMix() |
com.io7m.jcanephora.TextureCubeStaticUsableType |
getTexture() |
boolean |
materialRequiresUVCoordinates() |
static KMaterialEnvironmentReflection |
reflection(float in_mix,
com.io7m.jcanephora.TextureCubeStaticUsableType in_texture)
Construct a new environment reflection.
|
int |
texturesGetRequired() |
String |
toString() |
public static KMaterialEnvironmentReflection reflection(float in_mix, com.io7m.jcanephora.TextureCubeStaticUsableType in_texture)
in_mix
- The mix factor, with 1.0
resulting in only the
environment being visible, and 0
resulting in only
the underlying texture being visible.in_texture
- The environment texture.public String codeGet()
codeGet
in interface KMaterialCodeType
public <A,E extends Throwable,V extends KMaterialEnvironmentVisitorType<A,E>> A environmentAccept(V v) throws E extends Throwable, RException
KMaterialEnvironmentType
environmentAccept
in interface KMaterialEnvironmentType
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 float getMix()
public com.io7m.jcanephora.TextureCubeStaticUsableType getTexture()
public boolean materialRequiresUVCoordinates()
materialRequiresUVCoordinates
in interface KMaterialRequiresUVType
true
if the material requires UV coordinates for
rendering.public int texturesGetRequired()
texturesGetRequired
in interface KTexturesRequiredType
Copyright © 2015 <code@io7m.com> http://io7m.com