name, prefixedName, type, value
Constructor and Description |
---|
MatParamTexture() |
MatParamTexture(VarType type,
java.lang.String name,
Texture texture,
ColorSpace colorSpace) |
Modifier and Type | Method and Description |
---|---|
ColorSpace |
getColorSpace() |
Texture |
getTextureValue() |
void |
read(JmeImporter im) |
void |
setColorSpace(ColorSpace colorSpace)
Set to
ColorSpace.Linear if the texture color space has to be forced to linear
instead of sRGB |
void |
setTextureValue(Texture value) |
void |
setValue(java.lang.Object value)
Sets the value of this material parameter.
|
void |
write(JmeExporter ex) |
clone, equals, getName, getPrefixedName, getValue, getValueAsString, getVarType, hashCode, toString
public MatParamTexture(VarType type, java.lang.String name, Texture texture, ColorSpace colorSpace)
public MatParamTexture()
public Texture getTextureValue()
public void setTextureValue(Texture value)
public void setValue(java.lang.Object value)
MatParam
It is assumed the value is of the same type
as this material parameter.
public ColorSpace getColorSpace()
public void setColorSpace(ColorSpace colorSpace)
ColorSpace.Linear
if the texture color space has to be forced to linear
instead of sRGBcolorSpace
- the desired color spaceColorSpace
public void write(JmeExporter ex) throws java.io.IOException
public void read(JmeImporter im) throws java.io.IOException