public final class Surface
extends java.lang.Object
Surface is a model of a surface with different properties.| Modifier and Type | Field and Description |
|---|---|
static int |
RELATIVE_OFFSET_MATERIAL
The relative offset of the Material parameter in the
float array. |
static int |
RELATIVE_OFFSET_NOISE_AMOUNT
The relative offset of the Noise Amount parameter in the
float array. |
static int |
RELATIVE_OFFSET_NOISE_SCALE
The relative offset of the Noise Scale parameter in the
float array. |
static int |
RELATIVE_OFFSET_TEXTURE_ALBEDO_OFFSET
The relative offset of the Texture Albedo Offset parameter in the
float array. |
static int |
RELATIVE_OFFSET_TEXTURE_EMISSION_OFFSET
The relative offset of the Texture Emission Offset parameter in the
float array. |
static int |
RELATIVE_OFFSET_TEXTURE_NORMAL_OFFSET
The relative offset of the Texture Normal Offset parameter in the
float array. |
static int |
SIZE
The size of a
Surface in the float array. |
| Constructor and Description |
|---|
Surface(Material material,
Texture textureAlbedo,
Texture textureEmission,
Texture textureNormal)
Constructs a new
Surface instance. |
Surface(Material material,
Texture textureAlbedo,
Texture textureEmission,
Texture textureNormal,
float noiseAmount,
float noiseScale)
Constructs a new
Surface instance. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object object)
Compares
object to this Surface instance for equality. |
Material |
getMaterial()
Returns the
Material of this Surface instance. |
float |
getNoiseAmount()
Returns the Noise amount of this
Surface instance. |
float |
getNoiseScale()
Returns the Noise scale of this
Surface instance. |
Texture |
getTextureAlbedo()
Returns the Albedo
Texture of this Surface instance. |
Texture |
getTextureEmission()
Returns the Emission
Texture of this Surface instance. |
Texture |
getTextureNormal()
Returns the Normal Map
Texture of this Surface instance. |
int |
hashCode()
Returns a hash code for this
Surface instance. |
java.lang.String |
toString()
Returns a
String representation of this Surface instance. |
public static final int RELATIVE_OFFSET_MATERIAL
float array. The value is 0.public static final int RELATIVE_OFFSET_NOISE_AMOUNT
float array. The value is 4.public static final int RELATIVE_OFFSET_NOISE_SCALE
float array. The value is 5.public static final int RELATIVE_OFFSET_TEXTURE_ALBEDO_OFFSET
float array. The value is 1.public static final int RELATIVE_OFFSET_TEXTURE_EMISSION_OFFSET
float array. The value is 2.public static final int RELATIVE_OFFSET_TEXTURE_NORMAL_OFFSET
float array. The value is 3.public static final int SIZE
Surface in the float array. The size is 6.public Surface(Material material, Texture textureAlbedo, Texture textureEmission, Texture textureNormal)
Surface instance.
Calling this constructor is equivalent to new Surface(material, textureAlbedo, textureEmission, textureNormal, 0.0F, 0.0F).
If either material, textureAlbedo, textureEmission or textureNormal are null, a NullPointerException will be thrown.
public Surface(Material material, Texture textureAlbedo, Texture textureEmission, Texture textureNormal, float noiseAmount, float noiseScale)
Surface instance.
If either material, textureAlbedo, textureEmission or textureNormal are null, a NullPointerException will be thrown.
material - a MaterialtextureAlbedo - an Albedo TexturetextureEmission - an Emission TexturetextureNormal - a Normal TexturenoiseAmount - the noise amountnoiseScale - the noise scalejava.lang.NullPointerException - thrown if, and only if, either material, textureAlbedo, textureEmission or textureNormal are nullpublic Material getMaterial()
Material of this Surface instance.Material of this Surface instancepublic java.lang.String toString()
String representation of this Surface instance.toString in class java.lang.ObjectString representation of this Surface instancepublic Texture getTextureAlbedo()
Texture of this Surface instance.Texture of this Surface instancepublic Texture getTextureEmission()
Texture of this Surface instance.Texture of this Surface instancepublic Texture getTextureNormal()
Texture of this Surface instance.Texture of this Surface instancepublic boolean equals(java.lang.Object object)
object to this Surface instance for equality.
Returns true if, and only if, object is an instance of Surface, and their respective values are equal, false otherwise.
equals in class java.lang.Objectobject - the Object to compare to this Surface instance for equalitytrue if, and only if, object is an instance of Surface, and their respective values are equal, false otherwisepublic float getNoiseAmount()
Surface instance.Surface instancepublic float getNoiseScale()
Surface instance.Surface instancepublic int hashCode()
Surface instance.hashCode in class java.lang.ObjectSurface instance