Package com.jme3.material
Class MatParamTexture
java.lang.Object
com.jme3.material.MatParam
com.jme3.material.MatParamTexture
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionMatParamTexture(VarType type, String name, Texture texture, ColorSpace colorSpace) -
Method Summary
Modifier and TypeMethodDescriptionvoidread(JmeImporter im) voidsetColorSpace(ColorSpace colorSpace) Set toColorSpace.Linearif the texture color space has to be forced to linear instead of sRGBvoidsetTextureValue(Texture value) voidSets the value of this material parameter.voidwrite(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:MatParamSets the value of this material parameter.It is assumed the value is of the same
typeas this material parameter. -
getColorSpace
- Returns:
- the color space required by this texture param
-
setColorSpace
Set toColorSpace.Linearif the texture color space has to be forced to linear instead of sRGB- Parameters:
colorSpace- the desired color space- See Also:
-
write
- Specified by:
writein interfaceSavable- Overrides:
writein classMatParam- Throws:
IOException
-
read
- Specified by:
readin interfaceSavable- Overrides:
readin classMatParam- Throws:
IOException
-