Lines Matching defs:material
42 import com.jme3.material.Material;
69 protected Material material;
100 * Both the mesh and the material are null, the geometry
111 * The material of the geometry is null, it cannot
225 * Sets the material to use for this geometry.
227 * @param material the material to use for this geometry
230 public void setMaterial(Material material) {
232 throw new UnsupportedOperationException("Cannot set the material of a batched geometry, change the material of the parent BatchNode.");
234 this.material = material;
238 * Returns the material that is used for this geometry.
240 * @return the material that is used for this geometry
242 * @see #setMaterial(com.jme3.material.Material)
245 return material;
482 if (material != null) {
484 geomClone.material = material.clone();
486 geomClone.material = material;
526 if (material != null) {
527 oc.write(material.getAssetName(), "materialName", null);
529 oc.write(material, "material", null);
539 material = null;
543 // Attempt to load material via J3M
545 material = im.getAssetManager().loadMaterial(matName);
551 // If material is NULL, try to load it from the geometry
552 if (material == null) {
553 material = (Material) ic.readSavable("material", null);