IMeshPainterPaintFromWorldRay Method (Ray, MeshPainterRayDesc, FuncColor, Color) |
Paint a point where the world ray intersects the mesh.
Namespace:
Demo3D.Visuals.MeshPainter
Assembly:
Demo3D.Core (in Demo3D.Core.dll) Version: 15.0.2.11458
Syntaxvoid PaintFromWorldRay(
Ray worldRay,
MeshPainterRayDesc rayDesc,
Func<Color, Color> onPaintAction
)
Parameters
- worldRay
- Type: Demo3D.VisualsRay
The ray in world coordinates. - rayDesc
- Type: MeshPainterRayDesc
The description of the ray. - onPaintAction
- Type: SystemFuncColor, Color
The action to execute when painting occurs. The return value of the action will be the color to paint
See Also