Shaders Overview/VehicleShader/AllParams: Difference between revisions

From North Modding Company
(Created page with "== Parameters == === Base Parameters === {{VehicleShaderParameters|group=base}} === Scroll Parameters === {{VehicleShaderParameters|group=scroll}}")
 
No edit summary
Line 5: Line 5:
=== Scroll Parameters ===
=== Scroll Parameters ===
{{VehicleShaderParameters|group=scroll}}
{{VehicleShaderParameters|group=scroll}}
{{VehicleShaderParameters|group=offsetUV}}
{{VehicleShaderParameters|group=colorMask}}

Revision as of 14:15, 25 February 2024

Parameters

Base Parameters

RDT
Reflective Detail Textures - Controls the amount of reflective detail such as scratches, dirt, and snow on the vehicle surface. Type: `float4`. Default: `0.0 0.0 0.0 0.0`.
dirtColor
Sets the color of the dirt overlay on the vehicle. Type: `float4`. Default: `0.20 0.14 0.08 0.0`.


Scroll Parameters

scrollPosition
Controls the scrolling position for effects such as tracks or belts. Type: `float4`. Default: `0.0 0.0 0.0 0.0`. Range: `-1.0 0.0 0.0 0.0` to `1.0 10.0 10.0 1.0`.
prevScrollPosition
The previous scrolling position, calculated automatically by the shader. Type: `float4`. Default: `0.0 0.0 0.0 0.0`. Range: `-1.0 0.0 0.0 0.0` to `1.0 10.0 10.0 1.0`.
lengthAndRadius
Defines the length and radius for scrollable elements. Type: `float4`. Default: `2.0 0.5 0.0 0.0`.



offsetUV
Makes it possible to offset the UV in different directions. Type: `float4`. Default: `0.0 0.0 0.0 0.0`. Range: `-50.0 -50.0 -50.0 -50.0` to `50.0 50.0 50.0 50.0`.



colorMat
Array of 8 customizable colors/materials which is based of the UV UDIM location. First 3 floats controls the colors and the last controls the material (0 = metal, 1 = plastic etc) Type: `float4`. Default: `0.5 0.5 0.5 1.0"`. Range: `0.0 0.0 0.0 0.0` to `1.0 1.0 1.0 255.0`.