Tanoda
Es.InkPainter.Brush Class Reference

Class managing brush information. More...

Inheritance diagram for Es.InkPainter.Brush:

Public Types

enum  ColorBlendType { UseColor , UseBrush , Neutral , AlphaOnly }
 Color synthesis method. More...
 
enum  NormalBlendType {
  UseBrush , Add , Sub , Min ,
  Max
}
 Brush normal information synthesis method. More...
 
enum  HeightBlendType {
  UseBrush , Add , Sub , Min ,
  Max , ColorRGB_HeightA
}
 Brush height information synthesis method. More...
 

Public Member Functions

 Brush (Texture brushTex, float scale, Color color)
 
 Brush (Texture brushTex, float scale, Color color, ColorBlendType colorBlending)
 
 Brush (Texture brushTex, float scale, Color color, Texture normalTex, float normalBlend)
 
 Brush (Texture brushTex, float scale, Color color, Texture normalTex, float normalBlend, ColorBlendType colorBlending, NormalBlendType normalBlending)
 
 Brush (Texture brushTex, float scale, Color color, Texture normalTex, float normalBlend, Texture heightTex, float heightBlend, ColorBlendType colorBlending, NormalBlendType normalBlending, HeightBlendType heightBlending)
 
object Clone ()
 

Properties

Texture BrushTexture [get, set]
 Brush texture. More...
 
Texture BrushNormalTexture [get, set]
 Brush's normal texture More...
 
Texture BrushHeightTexture [get, set]
 Brush height texture. More...
 
float Scale [get, set]
 The size of the brush. It takes a range from 0 to 1. More...
 
float RotateAngle [get, set]
 Rotate angle of the brush. More...
 
float NormalBlend [get, set]
 Blending coefficient of normal information. It takes a range from 0 to 1. More...
 
float HeightBlend [get, set]
 Blending factor of height information. It takes a range from 0 to 1. More...
 
Color Color [get, set]
 The color of the brush. More...
 
ColorBlendType ColorBlending [get, set]
 Color synthesis method. More...
 
NormalBlendType NormalBlending [get, set]
 Brush normal information synthesis method. More...
 
HeightBlendType HeightBlending [get, set]
 Brush height information synthesis method. More...
 

Detailed Description

Class managing brush information.

Definition at line 10 of file Brush.cs.

Member Enumeration Documentation

◆ ColorBlendType

Color synthesis method.

Enumerator
UseColor 

Use the color set for the brush.

UseBrush 

Use brush texture as it is.

Neutral 

Use the intermediate color between the color of the brush and the color of the texture.

AlphaOnly 

Only use the alpha value set for the brush.

Definition at line 15 of file Brush.cs.

◆ HeightBlendType

Brush height information synthesis method.

Enumerator
UseBrush 

Use the value set for the brush.

Add 

Add and synthesize.

Sub 

Subtract and synthesize.

Min 

Use the minimum value.

Max 

Use the maximum value.

ColorRGB_HeightA 

Composite color information to RGB and height to A.

Definition at line 72 of file Brush.cs.

◆ NormalBlendType

Brush normal information synthesis method.

Enumerator
UseBrush 

Use the value set for the brush.

Add 

Add and synthesize.

Sub 

Subtract and synthesize.

Min 

Use the minimum value.

Max 

Use the maximum value.

Definition at line 41 of file Brush.cs.

Constructor & Destructor Documentation

◆ Brush() [1/5]

Es.InkPainter.Brush.Brush ( Texture  brushTex,
float  scale,
Color  color 
)

Definition at line 229 of file Brush.cs.

◆ Brush() [2/5]

Es.InkPainter.Brush.Brush ( Texture  brushTex,
float  scale,
Color  color,
ColorBlendType  colorBlending 
)

Definition at line 236 of file Brush.cs.

◆ Brush() [3/5]

Es.InkPainter.Brush.Brush ( Texture  brushTex,
float  scale,
Color  color,
Texture  normalTex,
float  normalBlend 
)

Definition at line 242 of file Brush.cs.

◆ Brush() [4/5]

Es.InkPainter.Brush.Brush ( Texture  brushTex,
float  scale,
Color  color,
Texture  normalTex,
float  normalBlend,
ColorBlendType  colorBlending,
NormalBlendType  normalBlending 
)

Definition at line 249 of file Brush.cs.

◆ Brush() [5/5]

Es.InkPainter.Brush.Brush ( Texture  brushTex,
float  scale,
Color  color,
Texture  normalTex,
float  normalBlend,
Texture  heightTex,
float  heightBlend,
ColorBlendType  colorBlending,
NormalBlendType  normalBlending,
HeightBlendType  heightBlending 
)

Definition at line 257 of file Brush.cs.

Member Function Documentation

◆ Clone()

object Es.InkPainter.Brush.Clone ( )

Definition at line 267 of file Brush.cs.

Property Documentation

◆ BrushHeightTexture

Texture Es.InkPainter.Brush.BrushHeightTexture
getset

Brush height texture.

Definition at line 148 of file Brush.cs.

◆ BrushNormalTexture

Texture Es.InkPainter.Brush.BrushNormalTexture
getset

Brush's normal texture

Definition at line 139 of file Brush.cs.

◆ BrushTexture

Texture Es.InkPainter.Brush.BrushTexture
getset

Brush texture.

Definition at line 130 of file Brush.cs.

◆ Color

Color Es.InkPainter.Brush.Color
getset

The color of the brush.

Definition at line 196 of file Brush.cs.

◆ ColorBlending

ColorBlendType Es.InkPainter.Brush.ColorBlending
getset

Color synthesis method.

Definition at line 205 of file Brush.cs.

◆ HeightBlend

float Es.InkPainter.Brush.HeightBlend
getset

Blending factor of height information. It takes a range from 0 to 1.

Definition at line 187 of file Brush.cs.

◆ HeightBlending

HeightBlendType Es.InkPainter.Brush.HeightBlending
getset

Brush height information synthesis method.

Definition at line 223 of file Brush.cs.

◆ NormalBlend

float Es.InkPainter.Brush.NormalBlend
getset

Blending coefficient of normal information. It takes a range from 0 to 1.

Definition at line 177 of file Brush.cs.

◆ NormalBlending

NormalBlendType Es.InkPainter.Brush.NormalBlending
getset

Brush normal information synthesis method.

Definition at line 214 of file Brush.cs.

◆ RotateAngle

float Es.InkPainter.Brush.RotateAngle
getset

Rotate angle of the brush.

Definition at line 167 of file Brush.cs.

◆ Scale

float Es.InkPainter.Brush.Scale
getset

The size of the brush. It takes a range from 0 to 1.

Definition at line 158 of file Brush.cs.


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