Class CombatEntityMaterialData

java.lang.Object
org.boxutil.units.standard.attribute.CombatEntityMaterialData

public class CombatEntityMaterialData extends Object
For how to use custom material data for any combat entity:
 
 CombatEntityMaterialData flag = new CombatEntityMaterialData();
 // *here any setting for flag*
 combatEntity.setCustomData(CombatEntityMaterialData.KEY, flag);
 
 
------------

For pass shading, add to tags in ship_data.csv or weapon_data.csv:

ogl_PassShading

dweller (for vanilla compatible)

See BoxDatabase.PASS_SHADING_FLAG

If any entity have any "pass shading" tags, all map is invalid.

------------

For block the normal map autogen, add to tags in ship_data.csv or weapon_data.csv:

ogl_NoAutoNormal

graphicslib_no_autogen (compatible)

See BoxDatabase.NORMAL_NO_AUTOGEN_FLAG

And then, they will use Z-vector for normal map(default normal).

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    The value less than or equals 0 for default texture: 0.0 emissive mask, 0.5 metalness and roughness.
    int
    The value less than or equals 0 for default texture.
    static final String
     
    int
    The value less than or equals 0 for default texture
    boolean
    The value true for pass shading in this frame, with ship weapon.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from class java.lang.Object

    clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • KEY

      public static final String KEY
    • normalMap

      public int normalMap
      The value less than or equals 0 for default texture
    • complexMap

      public int complexMap
      The value less than or equals 0 for default texture: 0.0 emissive mask, 0.5 metalness and roughness.
    • emissiveMap

      public int emissiveMap
      The value less than or equals 0 for default texture.
    • passShading

      public boolean passShading
      The value true for pass shading in this frame, with ship weapon.

  • Constructor Details

    • CombatEntityMaterialData

      public CombatEntityMaterialData()
  • Method Details