@EqualityReference public final class KMaterialEnvironmentReflectionMapped extends Object implements KMaterialEnvironmentType
An environment-mapped reflection with the environment multiplied by the specular map.
Note that this obviously requires the material to have a specular map assigned.
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 KMaterialEnvironmentReflectionMapped |
reflectionMapped(float in_mix,
com.io7m.jcanephora.TextureCubeStaticUsableType in_texture)
Construct a new environment reflection.
|
int |
texturesGetRequired() |
String |
toString() |
public static KMaterialEnvironmentReflectionMapped reflectionMapped(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