DustEngine  0.2.0
DustEngine.TextureSpaceField Class Reference
Inheritance diagram for DustEngine.TextureSpaceField:
DustEngine.SpaceField DustEngine.Field DustEngine.DuMonoBehaviour DustEngine.IDynamicState

Public Types

enum class  ColorComponent {
  Ignore = 0 , Grayscale = 1 , Red = 2 , Green = 3 ,
  Blue = 4 , Alpha = 5 , RGBAverage = 6 , RGBMin = 7 ,
  RGBMax = 8
}
 
enum class  WrapMode { Repeat = 0 , Clamp = 1 , Mirror = 2 }
 

Public Member Functions

override int GetDynamicStateHashCode ()
 
override string FieldName ()
 
override string FieldDynamicHint ()
 
override void Calculate (Field.Point fieldPoint, out Field.Result result, bool calculateColor)
 
override bool IsAllowCalculateFieldColor ()
 
- Public Member Functions inherited from DustEngine.SpaceField
override bool IsAllowCalculateFieldColor ()
 
override int GetDynamicStateHashCode ()
 
- Public Member Functions inherited from DustEngine.Field
virtual FieldsMap.FieldRecord.BlendPowerMode GetBlendPowerMode ()
 
virtual FieldsMap.FieldRecord.BlendColorMode GetBlendColorMode ()
 

Protected Attributes

WrapMode m_WrapMode = WrapMode.Repeat
 
bool m_FlipX = false
 
bool m_FlipY = false
 
ColorComponent m_PowerSource = ColorComponent.Ignore
 
bool m_ApplyPowerToAlpha = false
 
- Protected Attributes inherited from DustEngine.Field
string m_CustomHint = ""
 
DuNoise m_ColorRandomNoise
 

Properties

Texture2D texture [get, set]
 
WrapMode wrapMode [get, set]
 
bool flipX [get, set]
 
bool flipY [get, set]
 
float width [get, set]
 
float height [get, set]
 
Axis3xDirection direction [get, set]
 
ColorComponent powerSource [get, set]
 
bool applyPowerToAlpha [get, set]
 
- Properties inherited from DustEngine.SpaceField
Remapping remapping [get]
 
GizmoVisibility gizmoVisibility [get, set]
 
bool gizmoFieldColor [get, set]
 
- Properties inherited from DustEngine.Field
string customHint [get, set]
 
DuNoise colorRandomNoise [get]
 

Additional Inherited Members

- Static Public Member Functions inherited from DustEngine.DuMonoBehaviour
static void print_war (object message)
 
static void print_err (object message)
 
- Static Public Attributes inherited from DustEngine.Field
static readonly Color k_GizmosColorRangeZero = new Color(0.0f, 0.3f, 0.6f)
 
static readonly Color k_GizmosColorRangeOne = new Color(0.0f, 0.5f, 1.0f)
 
- Protected Member Functions inherited from DustEngine.SpaceField
void ResetDefaults ()
 
- Protected Member Functions inherited from DustEngine.Field
Color GetFieldColorByPower (Color color, float powerByField)
 
Color GetFieldColorFromRemapping (Remapping remapping, float powerByField, bool calculateColor)
 
Gradient GetFieldColorPreview (Remapping remapping, out float colorPower)
 
- Static Protected Member Functions inherited from DustEngine.DuMonoBehaviour
static bool UpdatePropertyValue (ref bool originValue, bool newValue)
 
static bool UpdatePropertyValue (ref int originValue, int newValue)
 
static bool UpdatePropertyValue (ref float originValue, float newValue)
 
static bool UpdatePropertyValue (ref Color originValue, Color newValue)
 
static bool UpdatePropertyValue (ref Vector3 originValue, Vector3 newValue)
 
static bool UpdatePropertyValue (ref Vector3Int originValue, Vector3Int newValue)
 
static bool UpdatePropertyValue (ref GameObject originValue, GameObject newValue)
 

The documentation for this class was generated from the following file: