Tanoda
|
Texture paint to canvas. To set the per-material. More...
Classes | |
class | PaintSet |
Public Member Functions | |
bool | PaintUVDirect (Brush brush, Vector2 uv, Func< PaintSet, bool > materialSelector=null) |
Paint processing that UV coordinates to the specified. More... | |
bool | PaintNearestTriangleSurface (Brush brush, Vector3 worldPos, Func< PaintSet, bool > materialSelector=null, Camera renderCamera=null) |
Paint of points close to the given world-space position on the Mesh surface. More... | |
bool | Paint (Brush brush, Vector3 worldPos, Func< PaintSet, bool > materialSelector=null, Camera renderCamera=null) |
Paint processing that use world-space surface position. More... | |
bool | Paint (Brush brush, Vector3 localPos) |
bool | Paint (Brush brush, RaycastHit hitInfo, Func< PaintSet, bool > materialSelector=null) |
Paint processing that use raycast hit data. Must MeshCollider is set to the canvas. More... | |
bool | EraseUVDirect (Brush brush, Vector2 uv, Func< PaintSet, bool > materialSelector=null) |
Erase processing that UV coordinates to the specified. More... | |
bool | EraseNearestTriangleSurface (Brush brush, Vector3 worldPos, Func< PaintSet, bool > materialSelector=null, Camera renderCamera=null) |
Erase of points close to the given world-space position on the Mesh surface. More... | |
bool | Erase (Brush brush, Vector3 worldPos, Func< PaintSet, bool > materialSelector=null, Camera renderCamera=null) |
Erase processing that use world-space surface position. More... | |
bool | Erase (Brush brush, RaycastHit hitInfo, Func< PaintSet, bool > materialSelector=null) |
Erase processing that use raycast hit data. Must MeshCollider is set to the canvas. More... | |
void | ResetPaint () |
To reset the paint. More... | |
Texture | GetMainTexture (string materialName) |
To get the original main texture. More... | |
RenderTexture | GetPaintMainTexture (string materialName) |
To get the main texture in paint. More... | |
void | SetPaintMainTexture (string materialName, RenderTexture newTexture) |
Set paint texture. More... | |
Texture | GetNormalTexture (string materialName) |
To get the original normal map. More... | |
RenderTexture | GetPaintNormalTexture (string materialName) |
To get the paint in normal map. More... | |
void | SetPaintNormalTexture (string materialName, RenderTexture newTexture) |
Set paint texture. More... | |
Texture | GetHeightTexture (string materialName) |
To get the original height map. More... | |
RenderTexture | GetPaintHeightTexture (string materialName) |
To get the paint in height map. More... | |
void | SetPaintHeightTexture (string materialName, RenderTexture newTexture) |
Set paint texture. More... | |
Properties | |
List< PaintSet > | PaintDatas [get, set] |
Access data used for painting. More... | |
MeshOperator | MeshOperator [get] |
Events | |
Action< InkCanvas > | OnCanvasAttached |
Called by InkCanvas attached game object. More... | |
Action< InkCanvas > | OnInitializedStart |
Called by InkCanvas initialization start times. More... | |
Action< InkCanvas > | OnInitializedAfter |
Called by InkCanvas initialization completion times. More... | |
Action< InkCanvas, Brush > | OnPaintStart |
Called at paint start. More... | |
Action< InkCanvas > | OnPaintEnd |
Called at paint end. More... | |
Texture paint to canvas. To set the per-material.
Definition at line 22 of file InkCanvas.cs.
bool Es.InkPainter.InkCanvas.Erase | ( | Brush | brush, |
RaycastHit | hitInfo, | ||
Func< PaintSet, bool > | materialSelector = null |
||
) |
Erase processing that use raycast hit data. Must MeshCollider is set to the canvas.
brush | Brush data. |
hitInfo | Raycast hit info. |
Definition at line 890 of file InkCanvas.cs.
bool Es.InkPainter.InkCanvas.Erase | ( | Brush | brush, |
Vector3 | worldPos, | ||
Func< PaintSet, bool > | materialSelector = null , |
||
Camera | renderCamera = null |
||
) |
Erase processing that use world-space surface position.
brush | Brush data. |
worldPos | Point on object surface (world-space). |
renderCamera | Camera to use to render the object. |
Definition at line 876 of file InkCanvas.cs.
bool Es.InkPainter.InkCanvas.EraseNearestTriangleSurface | ( | Brush | brush, |
Vector3 | worldPos, | ||
Func< PaintSet, bool > | materialSelector = null , |
||
Camera | renderCamera = null |
||
) |
Erase of points close to the given world-space position on the Mesh surface.
brush | Brush data. |
worldPos | Approximate point. |
renderCamera | Camera to use to render the object. |
Definition at line 862 of file InkCanvas.cs.
bool Es.InkPainter.InkCanvas.EraseUVDirect | ( | Brush | brush, |
Vector2 | uv, | ||
Func< PaintSet, bool > | materialSelector = null |
||
) |
Erase processing that UV coordinates to the specified.
brush | Brush data. |
uv | UV coordinates for the hit location. |
Definition at line 849 of file InkCanvas.cs.
Texture Es.InkPainter.InkCanvas.GetHeightTexture | ( | string | materialName | ) |
To get the original height map.
materialName | Material name. |
Definition at line 1008 of file InkCanvas.cs.
Texture Es.InkPainter.InkCanvas.GetMainTexture | ( | string | materialName | ) |
To get the original main texture.
materialName | Material name. |
Definition at line 912 of file InkCanvas.cs.
Texture Es.InkPainter.InkCanvas.GetNormalTexture | ( | string | materialName | ) |
To get the original normal map.
materialName | Material name. |
Definition at line 960 of file InkCanvas.cs.
RenderTexture Es.InkPainter.InkCanvas.GetPaintHeightTexture | ( | string | materialName | ) |
To get the paint in height map.
materialName | Material name. |
Definition at line 1022 of file InkCanvas.cs.
RenderTexture Es.InkPainter.InkCanvas.GetPaintMainTexture | ( | string | materialName | ) |
To get the main texture in paint.
materialName | Material name. |
Definition at line 926 of file InkCanvas.cs.
RenderTexture Es.InkPainter.InkCanvas.GetPaintNormalTexture | ( | string | materialName | ) |
To get the paint in normal map.
materialName | Material name. |
Definition at line 974 of file InkCanvas.cs.
bool Es.InkPainter.InkCanvas.Paint | ( | Brush | brush, |
RaycastHit | hitInfo, | ||
Func< PaintSet, bool > | materialSelector = null |
||
) |
Paint processing that use raycast hit data. Must MeshCollider is set to the canvas.
brush | Brush data. |
hitInfo | Raycast hit info. |
Definition at line 830 of file InkCanvas.cs.
bool Es.InkPainter.InkCanvas.Paint | ( | Brush | brush, |
Vector3 | localPos | ||
) |
Definition at line 812 of file InkCanvas.cs.
bool Es.InkPainter.InkCanvas.Paint | ( | Brush | brush, |
Vector3 | worldPos, | ||
Func< PaintSet, bool > | materialSelector = null , |
||
Camera | renderCamera = null |
||
) |
Paint processing that use world-space surface position.
brush | Brush data. |
worldPos | Point on object surface (world-space). |
renderCamera | Camera to use to render the object. |
Definition at line 793 of file InkCanvas.cs.
bool Es.InkPainter.InkCanvas.PaintNearestTriangleSurface | ( | Brush | brush, |
Vector3 | worldPos, | ||
Func< PaintSet, bool > | materialSelector = null , |
||
Camera | renderCamera = null |
||
) |
Paint of points close to the given world-space position on the Mesh surface.
brush | Brush data. |
worldPos | Approximate point. |
renderCamera | Camera to use to render the object. |
Definition at line 777 of file InkCanvas.cs.
bool Es.InkPainter.InkCanvas.PaintUVDirect | ( | Brush | brush, |
Vector2 | uv, | ||
Func< PaintSet, bool > | materialSelector = null |
||
) |
Paint processing that UV coordinates to the specified.
brush | Brush data. |
uv | UV coordinates for the hit location. |
Definition at line 687 of file InkCanvas.cs.
void Es.InkPainter.InkCanvas.ResetPaint | ( | ) |
To reset the paint.
Definition at line 899 of file InkCanvas.cs.
void Es.InkPainter.InkCanvas.SetPaintHeightTexture | ( | string | materialName, |
RenderTexture | newTexture | ||
) |
Set paint texture.
materialName | Material name. |
newTexture | New rendertexture. |
Definition at line 1036 of file InkCanvas.cs.
void Es.InkPainter.InkCanvas.SetPaintMainTexture | ( | string | materialName, |
RenderTexture | newTexture | ||
) |
Set paint texture.
materialName | Material name. |
newTexture | New rendertexture. |
Definition at line 940 of file InkCanvas.cs.
void Es.InkPainter.InkCanvas.SetPaintNormalTexture | ( | string | materialName, |
RenderTexture | newTexture | ||
) |
Set paint texture.
materialName | Material name. |
newTexture | New rendertexture. |
Definition at line 988 of file InkCanvas.cs.
|
get |
Definition at line 238 of file InkCanvas.cs.
|
getset |
Access data used for painting.
Definition at line 157 of file InkCanvas.cs.
Action<InkCanvas> Es.InkPainter.InkCanvas.OnCanvasAttached |
Called by InkCanvas attached game object.
Definition at line 166 of file InkCanvas.cs.
Action<InkCanvas> Es.InkPainter.InkCanvas.OnInitializedAfter |
Called by InkCanvas initialization completion times.
Definition at line 176 of file InkCanvas.cs.
Action<InkCanvas> Es.InkPainter.InkCanvas.OnInitializedStart |
Called by InkCanvas initialization start times.
Definition at line 171 of file InkCanvas.cs.
Action<InkCanvas> Es.InkPainter.InkCanvas.OnPaintEnd |
Called at paint end.
Definition at line 186 of file InkCanvas.cs.
Called at paint start.
Definition at line 181 of file InkCanvas.cs.