1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- using System.Collections.Generic;
- using UnityEngine;
- namespace MTE
- {
- internal struct TextureModifyGroup
- {
- public GameObject gameObject;
- public int splatIndex;
- public int splatTotal;
- public Texture2D controlTexture0;
- public Texture2D controlTexture1;
- public Texture2D controlTexture2;
- public Rect texelRect;
- public Vector2 minUV;
- public Vector2 maxUV;
- public TextureModifyGroup(GameObject gameObject, int splatIndex, int splatTotal, Texture2D controlTexture0, Texture2D controlTexture1, Rect texelRect, Vector2 minUV, Vector2 maxUV)
- {
- this.gameObject = gameObject;
- this.splatIndex = splatIndex;
- this.splatTotal = splatTotal;
- this.controlTexture0 = controlTexture0;
- this.controlTexture1 = controlTexture1;
- this.controlTexture2 = null;
- this.texelRect = texelRect;
- this.minUV = minUV;
- this.maxUV = maxUV;
- }
-
- public TextureModifyGroup(GameObject gameObject, int splatIndex, int splatTotal,
- Texture2D controlTexture0, Texture2D controlTexture1, Texture2D controlTexture2,
- Rect texelRect, Vector2 minUV, Vector2 maxUV)
- {
- this.gameObject = gameObject;
- this.splatIndex = splatIndex;
- this.splatTotal = splatTotal;
- this.controlTexture0 = controlTexture0;
- this.controlTexture1 = controlTexture1;
- this.controlTexture2 = controlTexture2;
- this.texelRect = texelRect;
- this.minUV = minUV;
- this.maxUV = maxUV;
- }
- }
- }
|