Lib.field.render.RaymarchField - tixl3d/tixl GitHub Wiki

RaymarchField

in Lib.field.render


Renders the connected shader graph SDF.

It uses the followed [SetMaterial], [SetFog] and [PointLight] override. It will correctly initialize the depth buffer so the output can be blended with other geometry like meshes.

Please checkout the examples.


Input Parameters

Name (Relevancy & Type) Description
SdfField (ShaderGraphNodeRequired) -
Color (Vector4) A color multiplier. You could also use [SetSDFMaterial] or [SetMaterial] for this.
AmbientOcclusion (Vector4) Will apply an ambient occlusion color depending on the AO Distance parameter.
You can use the alpha chanel to control the intensity.
Also try light colors ot add some kind of inner glow effect.
AoDistance (Single) Controls the distance and intensity of the Ambient Occlusion.
TextureScale (Single) Scale texture defined by the [SetMaterial].
UVMapping (Int32) Provides various options to generate UVs for the field.
NormalSamplingD (Single) Defines the look-up distance when calculating the surface normal. This controls how sharp objects appear.
Too small values will cause artifacs. Larger values wll apply some sort of smoothing effect.
MaxSteps (Single) The number of raymarching steps. This has a major impact on the quality and performance. Normal values are between 50 and 150.
MinDistance (Single) The distance threshold when the raymarchin is marked as completed.
MaxDistance (Single) A threshold after which the raymarching is aborted.
StepSize (Single) An intialia; scaling factor. Lowering this can be useful to reduce artifacts caused by invalid Lipschitz continuities (e.g. by applying noise).
DistToColor (Single) An minor factor that can help to reduce edge artifacts for compositing into the scene.

Outputs

Name Type
DrawCommand T3.Core.DataTypes.Command
ShaderCode System.String

Please help use to improve this documentation. Feel free to improve the description.

⚠ Everything else is automatically generated and will be overwritten regularly.

⚠️ **GitHub.com Fallback** ⚠️