@EqualityReference public final class KMaterialEmissiveMapped extends Object implements KMaterialEmissiveType
Modifier and Type | Method and Description |
---|---|
String |
codeGet() |
<A,E extends Throwable,V extends KMaterialEmissiveVisitorType<A,E>> |
emissiveAccept(V v)
Be visited by the given generic visitor.
|
float |
getEmission() |
com.io7m.jcanephora.Texture2DStaticUsableType |
getTexture() |
static KMaterialEmissiveMapped |
mapped(float in_emission,
com.io7m.jcanephora.Texture2DStaticUsableType in_texture)
Construct new emission properties.
|
boolean |
materialRequiresUVCoordinates() |
int |
texturesGetRequired() |
String |
toString() |
public static KMaterialEmissiveMapped mapped(float in_emission, com.io7m.jcanephora.Texture2DStaticUsableType in_texture)
in_emission
- The global surface emission.in_texture
- The emission map.public String codeGet()
codeGet
in interface KMaterialCodeType
public <A,E extends Throwable,V extends KMaterialEmissiveVisitorType<A,E>> A emissiveAccept(V v) throws E extends Throwable, RException
KMaterialEmissiveType
emissiveAccept
in interface KMaterialEmissiveType
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 getEmission()
public com.io7m.jcanephora.Texture2DStaticUsableType 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