test_class.declarator: material
test_class.modifier: private
test_class.original_string: private Material material;
test_class.type: Material
test_class.var_name: material
test_class.declarator: geometry = new Geometry("Geometry", new Box(1, 1, 1))
test_class.modifier: private final
test_class.original_string: private final Geometry geometry = new Geometry("Geometry", new Box(1, 1, 1));
test_class.type: Geometry
test_class.var_name: geometry
test_class.declarator: myCaps = EnumSet.noneOf(Caps.class)
test_class.modifier: private final
test_class.original_string: private final EnumSet<Caps> myCaps = EnumSet.noneOf(Caps.class);
test_class.type: EnumSet<Caps>
test_class.var_name: myCaps
test_class.declarator: renderManager = new RenderManager(new NullRenderer() {
          @Override
          public EnumSet<Caps> getCaps() {
              return MaterialTest.this.myCaps;
          }
      })
test_class.modifier: private final
test_class.original_string: private final RenderManager renderManager = new RenderManager(new NullRenderer() {
          @Override
          public EnumSet<Caps> getCaps() {
              return MaterialTest.this.myCaps;
          }
      });
test_class.type: RenderManager
test_class.var_name: renderManager
test_class.file: jme3-core/src/test/java/com/jme3/material/MaterialTest.java
test_class.identifier: MaterialTest
test_case.body: @Test
      public void testForcedColorSpace(){
         
          Image img=new Image(Format.RGBA8,2,2,BufferUtils.createByteBuffer(16),null,ColorSpace.sRGB);
          Image img2=new Image(Format.RGBA8,2,2,BufferUtils.createByteBuffer(16),null,ColorSpace.sRGB);
          Texture2D tx=new Texture2D(img);
          Texture2D tx2=new Texture2D(img2);
  
          assertTrue(tx2.getImage().getColorSpace()==ColorSpace.sRGB);
          assertTrue(tx2.getImage().getColorSpace()==ColorSpace.sRGB);
  
          AssetManager assetManager = TestUtil.createAssetManager();
          MaterialDef def=new MaterialDef(assetManager,"test");
          def.addMaterialParamTexture(VarType.Texture2D, "ColorMap",ColorSpace.Linear, null);
          Material mat=new Material(def);
          
          mat.setTexture("ColorMap",tx);          
          assertTrue(tx.getImage().getColorSpace()==ColorSpace.Linear);
          
          mat.setTexture("ColorMap",tx2);  
          assertTrue(tx2.getImage().getColorSpace()==ColorSpace.Linear);       
      
      }
test_case.class_method_signature: MaterialTest.testForcedColorSpace()
test_case.full_signature: @Test public void testForcedColorSpace()
test_case.identifier: testForcedColorSpace
test_case.invocations: createByteBuffer createByteBuffer assertTrue getColorSpace getImage assertTrue getColorSpace getImage createAssetManager addMaterialParamTexture setTexture assertTrue getColorSpace getImage setTexture assertTrue getColorSpace getImage
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testForcedColorSpace()
focal_class.declarator: SAVABLE_VERSION = 2
focal_class.modifier: public static final
focal_class.original_string: public static final int SAVABLE_VERSION = 2;
focal_class.type: int
focal_class.var_name: SAVABLE_VERSION
focal_class.declarator: logger = Logger.getLogger(Material.class.getName())
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = Logger.getLogger(Material.class.getName());
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: key
focal_class.modifier: private
focal_class.original_string: private AssetKey key;
focal_class.type: AssetKey
focal_class.var_name: key
focal_class.declarator: name
focal_class.modifier: private
focal_class.original_string: private String name;
focal_class.type: String
focal_class.var_name: name
focal_class.declarator: def
focal_class.modifier: private
focal_class.original_string: private MaterialDef def;
focal_class.type: MaterialDef
focal_class.var_name: def
focal_class.declarator: paramValues = new ListMap<String, MatParam>()
focal_class.modifier: private
focal_class.original_string: private ListMap<String, MatParam> paramValues = new ListMap<String, MatParam>();
focal_class.type: ListMap<String, MatParam>
focal_class.var_name: paramValues
focal_class.declarator: technique
focal_class.modifier: private
focal_class.original_string: private Technique technique;
focal_class.type: Technique
focal_class.var_name: technique
focal_class.declarator: techniques = new HashMap<String, Technique>()
focal_class.modifier: private
focal_class.original_string: private HashMap<String, Technique> techniques = new HashMap<String, Technique>();
focal_class.type: HashMap<String, Technique>
focal_class.var_name: techniques
focal_class.declarator: additionalState = null
focal_class.modifier: private
focal_class.original_string: private RenderState additionalState = null;
focal_class.type: RenderState
focal_class.var_name: additionalState
focal_class.declarator: mergedRenderState = new RenderState()
focal_class.modifier: private
focal_class.original_string: private RenderState mergedRenderState = new RenderState();
focal_class.type: RenderState
focal_class.var_name: mergedRenderState
focal_class.declarator: transparent = false
focal_class.modifier: private
focal_class.original_string: private boolean transparent = false;
focal_class.type: boolean
focal_class.var_name: transparent
focal_class.declarator: receivesShadows = false
focal_class.modifier: private
focal_class.original_string: private boolean receivesShadows = false;
focal_class.type: boolean
focal_class.var_name: receivesShadows
focal_class.declarator: sortingId = -1
focal_class.modifier: private
focal_class.original_string: private int sortingId = -1;
focal_class.type: int
focal_class.var_name: sortingId
focal_class.file: jme3-core/src/main/java/com/jme3/material/Material.java
focal_class.identifier: Material
focal_class.interfaces: implements CloneableSmartAsset, Cloneable, Savable
focal_class.class_method_signature: Material.Material(MaterialDef def)
focal_class.full_signature: public  Material(MaterialDef def)
focal_class.identifier: Material
focal_class.modifiers: public
focal_class.parameters: (MaterialDef def)
focal_class.signature:  Material(MaterialDef def)
focal_class.class_method_signature: Material.Material(AssetManager contentMan, String defName)
focal_class.full_signature: public  Material(AssetManager contentMan, String defName)
focal_class.identifier: Material
focal_class.modifiers: public
focal_class.parameters: (AssetManager contentMan, String defName)
focal_class.signature:  Material(AssetManager contentMan, String defName)
focal_class.class_method_signature: Material.Material()
focal_class.full_signature: public  Material()
focal_class.identifier: Material
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  Material()
focal_class.class_method_signature: Material.getAssetName()
focal_class.full_signature: public String getAssetName()
focal_class.identifier: getAssetName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getAssetName()
focal_class.class_method_signature: Material.getName()
focal_class.full_signature: public String getName()
focal_class.identifier: getName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getName()
focal_class.class_method_signature: Material.setName(String name)
focal_class.full_signature: public void setName(String name)
focal_class.identifier: setName
focal_class.modifiers: public
focal_class.parameters: (String name)
focal_class.return: void
focal_class.signature: void setName(String name)
focal_class.class_method_signature: Material.setKey(AssetKey key)
focal_class.full_signature: @Override public void setKey(AssetKey key)
focal_class.identifier: setKey
focal_class.modifiers: @Override public
focal_class.parameters: (AssetKey key)
focal_class.return: void
focal_class.signature: void setKey(AssetKey key)
focal_class.class_method_signature: Material.getKey()
focal_class.full_signature: @Override public AssetKey getKey()
focal_class.identifier: getKey
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: AssetKey
focal_class.signature: AssetKey getKey()
focal_class.class_method_signature: Material.getSortId()
focal_class.full_signature: public int getSortId()
focal_class.identifier: getSortId
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getSortId()
focal_class.class_method_signature: Material.clone()
focal_class.full_signature: @Override public Material clone()
focal_class.identifier: clone
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Material
focal_class.signature: Material clone()
focal_class.class_method_signature: Material.contentEquals(Object otherObj)
focal_class.full_signature: public boolean contentEquals(Object otherObj)
focal_class.identifier: contentEquals
focal_class.modifiers: public
focal_class.parameters: (Object otherObj)
focal_class.return: boolean
focal_class.signature: boolean contentEquals(Object otherObj)
focal_class.class_method_signature: Material.contentHashCode()
focal_class.full_signature: public int contentHashCode()
focal_class.identifier: contentHashCode
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int contentHashCode()
focal_class.class_method_signature: Material.getActiveTechnique()
focal_class.full_signature: public Technique getActiveTechnique()
focal_class.identifier: getActiveTechnique
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Technique
focal_class.signature: Technique getActiveTechnique()
focal_class.class_method_signature: Material.isTransparent()
focal_class.full_signature: public boolean isTransparent()
focal_class.identifier: isTransparent
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isTransparent()
focal_class.class_method_signature: Material.setTransparent(boolean transparent)
focal_class.full_signature: public void setTransparent(boolean transparent)
focal_class.identifier: setTransparent
focal_class.modifiers: public
focal_class.parameters: (boolean transparent)
focal_class.return: void
focal_class.signature: void setTransparent(boolean transparent)
focal_class.class_method_signature: Material.isReceivesShadows()
focal_class.full_signature: public boolean isReceivesShadows()
focal_class.identifier: isReceivesShadows
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isReceivesShadows()
focal_class.class_method_signature: Material.setReceivesShadows(boolean receivesShadows)
focal_class.full_signature: public void setReceivesShadows(boolean receivesShadows)
focal_class.identifier: setReceivesShadows
focal_class.modifiers: public
focal_class.parameters: (boolean receivesShadows)
focal_class.return: void
focal_class.signature: void setReceivesShadows(boolean receivesShadows)
focal_class.class_method_signature: Material.getAdditionalRenderState()
focal_class.full_signature: public RenderState getAdditionalRenderState()
focal_class.identifier: getAdditionalRenderState
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: RenderState
focal_class.signature: RenderState getAdditionalRenderState()
focal_class.class_method_signature: Material.getMaterialDef()
focal_class.full_signature: public MaterialDef getMaterialDef()
focal_class.identifier: getMaterialDef
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: MaterialDef
focal_class.signature: MaterialDef getMaterialDef()
focal_class.class_method_signature: Material.getParam(String name)
focal_class.full_signature: public MatParam getParam(String name)
focal_class.identifier: getParam
focal_class.modifiers: public
focal_class.parameters: (String name)
focal_class.return: MatParam
focal_class.signature: MatParam getParam(String name)
focal_class.class_method_signature: Material.getParamValue(final String name)
focal_class.full_signature: @SuppressWarnings("unchecked") public T getParamValue(final String name)
focal_class.identifier: getParamValue
focal_class.modifiers: @SuppressWarnings("unchecked") public
focal_class.parameters: (final String name)
focal_class.return: T
focal_class.signature: T getParamValue(final String name)
focal_class.class_method_signature: Material.getTextureParam(String name)
focal_class.full_signature: public MatParamTexture getTextureParam(String name)
focal_class.identifier: getTextureParam
focal_class.modifiers: public
focal_class.parameters: (String name)
focal_class.return: MatParamTexture
focal_class.signature: MatParamTexture getTextureParam(String name)
focal_class.class_method_signature: Material.getParams()
focal_class.full_signature: public Collection<MatParam> getParams()
focal_class.identifier: getParams
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Collection<MatParam>
focal_class.signature: Collection<MatParam> getParams()
focal_class.class_method_signature: Material.getParamsMap()
focal_class.full_signature: public ListMap<String, MatParam> getParamsMap()
focal_class.identifier: getParamsMap
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: ListMap<String, MatParam>
focal_class.signature: ListMap<String, MatParam> getParamsMap()
focal_class.class_method_signature: Material.checkSetParam(VarType type, String name)
focal_class.full_signature: private void checkSetParam(VarType type, String name)
focal_class.identifier: checkSetParam
focal_class.modifiers: private
focal_class.parameters: (VarType type, String name)
focal_class.return: void
focal_class.signature: void checkSetParam(VarType type, String name)
focal_class.class_method_signature: Material.setParam(String name, VarType type, Object value)
focal_class.full_signature: public void setParam(String name, VarType type, Object value)
focal_class.identifier: setParam
focal_class.modifiers: public
focal_class.parameters: (String name, VarType type, Object value)
focal_class.return: void
focal_class.signature: void setParam(String name, VarType type, Object value)
focal_class.class_method_signature: Material.clearParam(String name)
focal_class.full_signature: public void clearParam(String name)
focal_class.identifier: clearParam
focal_class.modifiers: public
focal_class.parameters: (String name)
focal_class.return: void
focal_class.signature: void clearParam(String name)
focal_class.class_method_signature: Material.setTextureParam(String name, VarType type, Texture value)
focal_class.full_signature: public void setTextureParam(String name, VarType type, Texture value)
focal_class.identifier: setTextureParam
focal_class.modifiers: public
focal_class.parameters: (String name, VarType type, Texture value)
focal_class.return: void
focal_class.signature: void setTextureParam(String name, VarType type, Texture value)
focal_class.class_method_signature: Material.checkTextureParamColorSpace(String name, Texture value)
focal_class.full_signature: private void checkTextureParamColorSpace(String name, Texture value)
focal_class.identifier: checkTextureParamColorSpace
focal_class.modifiers: private
focal_class.parameters: (String name, Texture value)
focal_class.return: void
focal_class.signature: void checkTextureParamColorSpace(String name, Texture value)
focal_class.class_method_signature: Material.setTexture(String name, Texture value)
focal_class.full_signature: public void setTexture(String name, Texture value)
focal_class.identifier: setTexture
focal_class.modifiers: public
focal_class.parameters: (String name, Texture value)
focal_class.return: void
focal_class.signature: void setTexture(String name, Texture value)
focal_class.class_method_signature: Material.setMatrix4(String name, Matrix4f value)
focal_class.full_signature: public void setMatrix4(String name, Matrix4f value)
focal_class.identifier: setMatrix4
focal_class.modifiers: public
focal_class.parameters: (String name, Matrix4f value)
focal_class.return: void
focal_class.signature: void setMatrix4(String name, Matrix4f value)
focal_class.class_method_signature: Material.setBoolean(String name, boolean value)
focal_class.full_signature: public void setBoolean(String name, boolean value)
focal_class.identifier: setBoolean
focal_class.modifiers: public
focal_class.parameters: (String name, boolean value)
focal_class.return: void
focal_class.signature: void setBoolean(String name, boolean value)
focal_class.class_method_signature: Material.setFloat(String name, float value)
focal_class.full_signature: public void setFloat(String name, float value)
focal_class.identifier: setFloat
focal_class.modifiers: public
focal_class.parameters: (String name, float value)
focal_class.return: void
focal_class.signature: void setFloat(String name, float value)
focal_class.class_method_signature: Material.setFloat(String name, Float value)
focal_class.full_signature: public void setFloat(String name, Float value)
focal_class.identifier: setFloat
focal_class.modifiers: public
focal_class.parameters: (String name, Float value)
focal_class.return: void
focal_class.signature: void setFloat(String name, Float value)
focal_class.class_method_signature: Material.setInt(String name, int value)
focal_class.full_signature: public void setInt(String name, int value)
focal_class.identifier: setInt
focal_class.modifiers: public
focal_class.parameters: (String name, int value)
focal_class.return: void
focal_class.signature: void setInt(String name, int value)
focal_class.class_method_signature: Material.setColor(String name, ColorRGBA value)
focal_class.full_signature: public void setColor(String name, ColorRGBA value)
focal_class.identifier: setColor
focal_class.modifiers: public
focal_class.parameters: (String name, ColorRGBA value)
focal_class.return: void
focal_class.signature: void setColor(String name, ColorRGBA value)
focal_class.class_method_signature: Material.setUniformBufferObject(final String name, final BufferObject value)
focal_class.full_signature: public void setUniformBufferObject(final String name, final BufferObject value)
focal_class.identifier: setUniformBufferObject
focal_class.modifiers: public
focal_class.parameters: (final String name, final BufferObject value)
focal_class.return: void
focal_class.signature: void setUniformBufferObject(final String name, final BufferObject value)
focal_class.class_method_signature: Material.setShaderStorageBufferObject(final String name, final BufferObject value)
focal_class.full_signature: public void setShaderStorageBufferObject(final String name, final BufferObject value)
focal_class.identifier: setShaderStorageBufferObject
focal_class.modifiers: public
focal_class.parameters: (final String name, final BufferObject value)
focal_class.return: void
focal_class.signature: void setShaderStorageBufferObject(final String name, final BufferObject value)
focal_class.class_method_signature: Material.setVector2(String name, Vector2f value)
focal_class.full_signature: public void setVector2(String name, Vector2f value)
focal_class.identifier: setVector2
focal_class.modifiers: public
focal_class.parameters: (String name, Vector2f value)
focal_class.return: void
focal_class.signature: void setVector2(String name, Vector2f value)
focal_class.class_method_signature: Material.setVector3(String name, Vector3f value)
focal_class.full_signature: public void setVector3(String name, Vector3f value)
focal_class.identifier: setVector3
focal_class.modifiers: public
focal_class.parameters: (String name, Vector3f value)
focal_class.return: void
focal_class.signature: void setVector3(String name, Vector3f value)
focal_class.class_method_signature: Material.setVector4(String name, Vector4f value)
focal_class.full_signature: public void setVector4(String name, Vector4f value)
focal_class.identifier: setVector4
focal_class.modifiers: public
focal_class.parameters: (String name, Vector4f value)
focal_class.return: void
focal_class.signature: void setVector4(String name, Vector4f value)
focal_class.class_method_signature: Material.selectTechnique(String name, final RenderManager renderManager)
focal_class.full_signature: public void selectTechnique(String name, final RenderManager renderManager)
focal_class.identifier: selectTechnique
focal_class.modifiers: public
focal_class.parameters: (String name, final RenderManager renderManager)
focal_class.return: void
focal_class.signature: void selectTechnique(String name, final RenderManager renderManager)
focal_class.class_method_signature: Material.applyOverrides(Renderer renderer, Shader shader, SafeArrayList<MatParamOverride> overrides, int unit)
focal_class.full_signature: private int applyOverrides(Renderer renderer, Shader shader, SafeArrayList<MatParamOverride> overrides, int unit)
focal_class.identifier: applyOverrides
focal_class.modifiers: private
focal_class.parameters: (Renderer renderer, Shader shader, SafeArrayList<MatParamOverride> overrides, int unit)
focal_class.return: int
focal_class.signature: int applyOverrides(Renderer renderer, Shader shader, SafeArrayList<MatParamOverride> overrides, int unit)
focal_class.class_method_signature: Material.updateShaderMaterialParameters(Renderer renderer, Shader shader,
                                                 SafeArrayList<MatParamOverride> worldOverrides, SafeArrayList<MatParamOverride> forcedOverrides)
focal_class.full_signature: private int updateShaderMaterialParameters(Renderer renderer, Shader shader,
                                                 SafeArrayList<MatParamOverride> worldOverrides, SafeArrayList<MatParamOverride> forcedOverrides)
focal_class.identifier: updateShaderMaterialParameters
focal_class.modifiers: private
focal_class.parameters: (Renderer renderer, Shader shader,
                                                 SafeArrayList<MatParamOverride> worldOverrides, SafeArrayList<MatParamOverride> forcedOverrides)
focal_class.return: int
focal_class.signature: int updateShaderMaterialParameters(Renderer renderer, Shader shader,
                                                 SafeArrayList<MatParamOverride> worldOverrides, SafeArrayList<MatParamOverride> forcedOverrides)
focal_class.class_method_signature: Material.isBO(final VarType type)
focal_class.full_signature: private boolean isBO(final VarType type)
focal_class.identifier: isBO
focal_class.modifiers: private
focal_class.parameters: (final VarType type)
focal_class.return: boolean
focal_class.signature: boolean isBO(final VarType type)
focal_class.class_method_signature: Material.updateRenderState(RenderManager renderManager, Renderer renderer, TechniqueDef techniqueDef)
focal_class.full_signature: private void updateRenderState(RenderManager renderManager, Renderer renderer, TechniqueDef techniqueDef)
focal_class.identifier: updateRenderState
focal_class.modifiers: private
focal_class.parameters: (RenderManager renderManager, Renderer renderer, TechniqueDef techniqueDef)
focal_class.return: void
focal_class.signature: void updateRenderState(RenderManager renderManager, Renderer renderer, TechniqueDef techniqueDef)
focal_class.class_method_signature: Material.preload(RenderManager renderManager, Geometry geometry)
focal_class.full_signature: public void preload(RenderManager renderManager, Geometry geometry)
focal_class.identifier: preload
focal_class.modifiers: public
focal_class.parameters: (RenderManager renderManager, Geometry geometry)
focal_class.return: void
focal_class.signature: void preload(RenderManager renderManager, Geometry geometry)
focal_class.class_method_signature: Material.clearUniformsSetByCurrent(Shader shader)
focal_class.full_signature: private void clearUniformsSetByCurrent(Shader shader)
focal_class.identifier: clearUniformsSetByCurrent
focal_class.modifiers: private
focal_class.parameters: (Shader shader)
focal_class.return: void
focal_class.signature: void clearUniformsSetByCurrent(Shader shader)
focal_class.class_method_signature: Material.resetUniformsNotSetByCurrent(Shader shader)
focal_class.full_signature: private void resetUniformsNotSetByCurrent(Shader shader)
focal_class.identifier: resetUniformsNotSetByCurrent
focal_class.modifiers: private
focal_class.parameters: (Shader shader)
focal_class.return: void
focal_class.signature: void resetUniformsNotSetByCurrent(Shader shader)
focal_class.class_method_signature: Material.render(Geometry geometry, LightList lights, RenderManager renderManager)
focal_class.full_signature: public void render(Geometry geometry, LightList lights, RenderManager renderManager)
focal_class.identifier: render
focal_class.modifiers: public
focal_class.parameters: (Geometry geometry, LightList lights, RenderManager renderManager)
focal_class.return: void
focal_class.signature: void render(Geometry geometry, LightList lights, RenderManager renderManager)
focal_class.class_method_signature: Material.render(Geometry geom, RenderManager rm)
focal_class.full_signature: public void render(Geometry geom, RenderManager rm)
focal_class.identifier: render
focal_class.modifiers: public
focal_class.parameters: (Geometry geom, RenderManager rm)
focal_class.return: void
focal_class.signature: void render(Geometry geom, RenderManager rm)
focal_class.class_method_signature: Material.write(JmeExporter ex)
focal_class.full_signature: @Override public void write(JmeExporter ex)
focal_class.identifier: write
focal_class.modifiers: @Override public
focal_class.parameters: (JmeExporter ex)
focal_class.return: void
focal_class.signature: void write(JmeExporter ex)
focal_class.class_method_signature: Material.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: Material.read(JmeImporter im)
focal_class.full_signature: @Override @SuppressWarnings("unchecked") public void read(JmeImporter im)
focal_class.identifier: read
focal_class.modifiers: @Override @SuppressWarnings("unchecked") public
focal_class.parameters: (JmeImporter im)
focal_class.return: void
focal_class.signature: void read(JmeImporter im)
focal_method.body: public void setTexture(String name, Texture value) {
          if (value == null) {
              // clear it
              clearParam(name);
              return;
          }
  
          VarType paramType = null;
          switch (value.getType()) {
              case TwoDimensional:
                  paramType = VarType.Texture2D;
                  break;
              case TwoDimensionalArray:
                  paramType = VarType.TextureArray;
                  break;
              case ThreeDimensional:
                  paramType = VarType.Texture3D;
                  break;
              case CubeMap:
                  paramType = VarType.TextureCubeMap;
                  break;
              default:
                  throw new UnsupportedOperationException("Unknown texture type: " + value.getType());
          }
  
          setTextureParam(name, paramType, value);
      }
focal_method.class_method_signature: Material.setTexture(String name, Texture value)
focal_method.full_signature: public void setTexture(String name, Texture value)
focal_method.identifier: setTexture
focal_method.invocations: clearParam getType getType setTextureParam
focal_method.modifiers: public
focal_method.parameters: (String name, Texture value)
focal_method.return: void
focal_method.signature: void setTexture(String name, Texture value)