@EqualityReference public final class KMaterialAlbedoTextured extends Object implements KMaterialAlbedoType
Modifier and Type | Method and Description |
---|---|
<A,E extends Throwable,V extends KMaterialAlbedoVisitorType<A,E>> |
albedoAccept(V v)
Be visited by the given generic visitor.
|
String |
codeGet() |
com.io7m.jtensors.parameterized.PVectorI4F<RSpaceRGBAType> |
getColor() |
float |
getMix() |
com.io7m.jcanephora.Texture2DStaticUsableType |
getTexture() |
boolean |
materialRequiresUVCoordinates() |
static KMaterialAlbedoTextured |
textured(com.io7m.jtensors.parameterized.PVectorI4F<RSpaceRGBAType> in_color,
float in_mix,
com.io7m.jcanephora.Texture2DStaticUsableType in_texture)
Construct new albedo properties.
|
int |
texturesGetRequired() |
String |
toString() |
public static KMaterialAlbedoTextured textured(com.io7m.jtensors.parameterized.PVectorI4F<RSpaceRGBAType> in_color, float in_mix, com.io7m.jcanephora.Texture2DStaticUsableType in_texture)
in_color
- The base surface color.in_mix
- The base surface color/texture mix factor.in_texture
- The texture.public <A,E extends Throwable,V extends KMaterialAlbedoVisitorType<A,E>> A albedoAccept(V v) throws E extends Throwable, RException
KMaterialAlbedoType
albedoAccept
in interface KMaterialAlbedoType
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 String codeGet()
codeGet
in interface KMaterialCodeType
public com.io7m.jtensors.parameterized.PVectorI4F<RSpaceRGBAType> getColor()
public float getMix()
0.0
resulting in only the base surface color being
visible, and 1.0
resulting in only the texture being
visible.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