Class MatParamTexture

java.lang.Object
com.jme3.material.MatParam
com.jme3.material.MatParamTexture
All Implemented Interfaces:
Savable, Cloneable

public class MatParamTexture extends MatParam
  • Constructor Details

    • MatParamTexture

      public MatParamTexture(VarType type, String name, Texture texture, ColorSpace colorSpace)
    • MatParamTexture

      public MatParamTexture()
  • Method Details

    • getTextureValue

      public Texture getTextureValue()
    • setTextureValue

      public void setTextureValue(Texture value)
    • setValue

      public void setValue(Object value)
      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.

      Overrides:
      setValue in class MatParam
      Parameters:
      value - the value of this material parameter.
    • getColorSpace

      public ColorSpace getColorSpace()
      Returns:
      the color space required by this texture param
    • setColorSpace

      public void setColorSpace(ColorSpace colorSpace)
      Set to ColorSpace.Linear if the texture color space has to be forced to linear instead of sRGB
      Parameters:
      colorSpace - the desired color space
      See Also:
    • write

      public void write(JmeExporter ex) throws IOException
      Specified by:
      write in interface Savable
      Overrides:
      write in class MatParam
      Throws:
      IOException
    • read

      public void read(JmeImporter im) throws IOException
      Specified by:
      read in interface Savable
      Overrides:
      read in class MatParam
      Throws:
      IOException