Lib.mesh.draw.DrawMesh - tixl3d/tixl GitHub Wiki
Uses PBR rendering to draw incoming geometry and meshnodes according to the desired settings. For convenience Tooll adds a default reflection and two point lights attached to the camera to a RenderTarget. You can override these by adding [SetEnvironment] and [SetMaterial] operators further up (further right) in your graph. You can adjust various parameters to achieve wireframe or both sided rendering.
An interactive tutorial for the complete TiXL render pipeline can be found at [HowToDrawThings].
The most commonly used render methods are [Drawmesh], [DrawMeshUnlit] and [DrawMeshHatched] and [DrawMeshAtPoints].
They can then be combined with [SetMaterial], [SetFog], [SetPointLight] and many others to create the look of scenes.
Name (Relevancy & Type) | Description |
---|---|
Mesh (MeshBuffersRequired) | Input for Incoming Mesh Geometry |
Color (Vector4) | Defines the shading color of the mesh. If a [SetMaterial] is used, these colors are multiplied with its settings. |
AlphaCutOff (Single) | This value controls transparency if a texture containing an alpha channel is used. |
BlendMode (Int32) | Selects the Blendmode. |
FillMode (Int32) | Toggles between colored Wireframe Rendering or default shading method. |
Culling (CullMode) | Defines the transparency of the surfaces. None: All surfaces are "bothsided" or always visible from all sides Front: The normals are flipped (frontside is transparent / backside visible) Back: Default (Frontside is visible / backside is invisible) |
EnableZTest (Boolean) | If enabled discards fragments sorted out by z-buffer. This defines whether the mesh covers itself or is covered by or covers other meshes. |
EnableZWrite (Boolean) | This defines whether the mesh covers itself or is covered by or covers other meshes. |
Filter (Filter) | Defines the mode for texture filtering |
WrapMode (TextureAddressMode) | Defines how the texture behaves when repeated. Wrap: The texture repeats itself continuously Mirror: The texture is mirrored and repeats infinitely. Clamp: The texture is cut off at the edge Border: Unclear MirrOnce: The texture is mirrored once, then cut off |
UseMaterialId (String) | - |
FragmentField (ShaderGraphNode) | An optional shader graph with a color function. It will use the world position.xyz to generate a color that is multiplied before drawing the fragment. Try [SphereField]->[SdfToColor]->.FragmentField. |
Name | Type |
---|---|
Output | T3.Core.DataTypes.Command |
Please help use to improve this documentation. Feel free to improve the description.
⚠ Everything else is automatically generated and will be overwritten regularly.