105 [SerializeField]
private Texture brushTexture;
107 [SerializeField]
private Texture brushNormalTexture;
109 [SerializeField]
private Texture brushHeightTexture;
111 [SerializeField] [Range(0, 1)]
private float brushScale = 0.1f;
113 [SerializeField] [Range(0, 360)]
private float rotateAngle;
115 [SerializeField] [Range(0, 1)]
private float brushNormalBlend = 0.1f;
117 [SerializeField] [Range(0, 1)]
private float brushHeightBlend = 0.1f;
119 [SerializeField]
private Color brushColor;
133 set => brushTexture = value;
141 get => brushNormalTexture;
142 set => brushNormalTexture = value;
150 get => brushHeightTexture;
151 set => brushHeightTexture = value;
160 get => Mathf.Clamp01(brushScale);
161 set => brushScale = Mathf.Clamp01(value);
170 set => rotateAngle = value;
179 get => Mathf.Clamp01(brushNormalBlend);
180 set => brushNormalBlend = Mathf.Clamp01(value);
189 get => Mathf.Clamp01(brushHeightBlend);
190 set => brushHeightBlend = Mathf.Clamp01(value);
199 set => brushColor = value;
207 get => colorBlendType;
208 set => colorBlendType = value;
216 get => normalBlendType;
217 set => normalBlendType = value;
225 get => heightBlendType;
226 set => heightBlendType = value;
237 : this(brushTex, scale, color)
242 public Brush(Texture brushTex,
float scale,
Color color, Texture normalTex,
float normalBlend)
243 : this(brushTex, scale, color)
249 public Brush(Texture brushTex,
float scale,
Color color, Texture normalTex,
float normalBlend,
251 : this(brushTex, scale, color, normalTex, normalBlend)
257 public Brush(Texture brushTex,
float scale,
Color color, Texture normalTex,
float normalBlend,
260 : this(brushTex, scale, color, normalTex, normalBlend, colorBlending, normalBlending)
269 return MemberwiseClone();
Class managing brush information.
float RotateAngle
Rotate angle of the brush.
float Scale
The size of the brush. It takes a range from 0 to 1.
NormalBlendType
Brush normal information synthesis method.
Brush(Texture brushTex, float scale, Color color, ColorBlendType colorBlending)
Brush(Texture brushTex, float scale, Color color, Texture normalTex, float normalBlend, Texture heightTex, float heightBlend, ColorBlendType colorBlending, NormalBlendType normalBlending, HeightBlendType heightBlending)
float HeightBlend
Blending factor of height information. It takes a range from 0 to 1.
ColorBlendType ColorBlending
Color synthesis method.
ColorBlendType
Color synthesis method.
Brush(Texture brushTex, float scale, Color color, Texture normalTex, float normalBlend, ColorBlendType colorBlending, NormalBlendType normalBlending)
HeightBlendType HeightBlending
Brush height information synthesis method.
Texture BrushHeightTexture
Brush height texture.
NormalBlendType NormalBlending
Brush normal information synthesis method.
float NormalBlend
Blending coefficient of normal information. It takes a range from 0 to 1.
Texture BrushNormalTexture
Brush's normal texture
Brush(Texture brushTex, float scale, Color color, Texture normalTex, float normalBlend)
HeightBlendType
Brush height information synthesis method.
Texture BrushTexture
Brush texture.
Brush(Texture brushTex, float scale, Color color)