Package com.jme3.material
Class MatParamTexture
java.lang.Object
com.jme3.material.MatParam
com.jme3.material.MatParamTexture
-
Field Summary
-
Constructor Summary
ConstructorDescriptionMatParamTexture
(VarType type, String name, Texture texture, ColorSpace colorSpace) -
Method Summary
Modifier and TypeMethodDescriptionvoid
read
(JmeImporter im) void
setColorSpace
(ColorSpace colorSpace) Set toColorSpace.Linear
if the texture color space has to be forced to linear instead of sRGBvoid
setTextureValue
(Texture value) void
Sets the value of this material parameter.void
write
(JmeExporter ex) Methods inherited from class com.jme3.material.MatParam
clone, equals, getName, getPrefixedName, getValue, getValueAsString, getVarType, hashCode, isTypeCheckEnabled, setTypeCheckEnabled, toString
-
Constructor Details
-
MatParamTexture
-
MatParamTexture
public MatParamTexture()
-
-
Method Details
-
getTextureValue
-
setTextureValue
-
setValue
Description copied from class:MatParam
Sets the value of this material parameter.It is assumed the value is of the same
type
as this material parameter. -
getColorSpace
- Returns:
- the color space required by this texture param
-
setColorSpace
Set toColorSpace.Linear
if the texture color space has to be forced to linear instead of sRGB- Parameters:
colorSpace
- the desired color space- See Also:
-
write
- Specified by:
write
in interfaceSavable
- Overrides:
write
in classMatParam
- Throws:
IOException
-
read
- Specified by:
read
in interfaceSavable
- Overrides:
read
in classMatParam
- Throws:
IOException
-