anchor.diff:  = jMonkeyEngine3 Material Specification
  -:author: 
  -:revnumber: 
  +:author:
  +:revnumber:
   :revdate: 2016/03/17 20:48
   :relfileprefix: ../../
   :imagesdir: ../..
  
positive.code: 
  At the time of writing, the following types of parameters are allowed inside J3MD files: Int, Boolean, Float, Vector2, Vector3, Vector4, Texture2D, TextureCubeMap.
  
  You can specify a default value for material parameters, inside material definitions, in the case that no value is specified in the material instance. 
  
  [source]
  ----
  
negative.code: Material MyGrass : Common/MatDefs/Misc/TestMaterial.j3md {
  ----
  
  The material definition is a required component, depending on the material definition being used, the appearance and functionality of the material changes completely. Whereas the material definition provided the "`logic`" for the material, the material instance provides the configuration for how this logic operates.
  
  The J3M file includes only a single structure; MaterialParameters, analogous to the same-named structure in the J3MD file. Whereas the J3MD file specified the parameter names and types, the J3M file specifies the values for these parameters. By changing the parameters, the configuration of the parent J3MD changes, allowing a different effect to be achieved.
  
  To specify a value for a parameter, one must specify first the parameter name, followed by a colon, and then followed by the parameter value. For texture parameters, the value is an absolute asset path pointing to the image file. Optionally, the path can be prefixed with the word "`Flip`" in order to flip the image along the Y-axis, this may be needed for some models.
  
  *Example of a MaterialParameters block in J3M:*
  
  [source]
  ----
  MaterialParameters {
    m_Shininess : 20.0
  }
  ----
  [cols="2", options="header"]
  