Template:VehicleShaderParameters: Difference between revisions

From North Modding Company
No edit summary
No edit summary
 
Line 87: Line 87:
; blinkOffset
; blinkOffset
: Controls the light blink offset/pattern. For Multi blink 1 is blink ticks, 2 is pause ticks and 3 is fequency control: `float4`. Default: `0.0 0.0 1.0 0.0`.
: Controls the light blink offset/pattern. For Multi blink 1 is blink ticks, 2 is pause ticks and 3 is fequency control: `float4`. Default: `0.0 0.0 1.0 0.0`.
| jiggling =
; amplFreq
: amplFreq.x - amplitude of jiggling
  amplFreq.y - frequency of jiggling
  amplFreq.z - not used
  amplFreq.w - time controlled by script: `float4`. Default: `1 1 1 0`.
; prevAmplFreq
: Automatically calculated by the game: `float4`. Default: `1 1 1 0`.
| shaking =
; shaking
: `float4`. Default: `0 0 1 0`.
; prevShaking
: Automatically calculated by the game: `float4`. Default: `0 0 1 0`.
| vtxRotate =
; rotationAngle
: Radians around X axis of each object: `float`. Default: `0`. Range: `-10.0` to `10.0`.
; prevShaking
: Automatically calculated by the game: `float`. Default: `0`. Range: `-10.0` to `10.0`.
| windBend =
; directionBend
: directionBend.xyz - acceleration vector (local space)
  directionBend.w  - bending amount:
`float4`. Default: `0.0 0.0 1.0 0.0`. Range: `-1.0 -1.0 -1.0 -2.0` to `1.0 1.0 1.0 2.0`.
; prevDirectionBend
: Automatically calculated by the game: `float4`. Default: `0.0 0.0 1.0 0.0`. Range: `-1.0 -1.0 -1.0 -2.0` to `1.0 1.0 1.0 2.0`.
| cableTrayChain =
; controlPointAndLength
: controlPointAndLength.x - horizontal offset from the pivot // set dynamically by LUA script
  controlPointAndLength.y - vertical offset from the pivot  // set dynamically by LUA script
  controlPointAndLength.z - length of the cableTray mesh // should be constant:
`float3`. Default: `-0.25 -0.5 3 0`. Range: `-2.0 -2.0 0.0` to `2.0 2.0 10.0`.
; prevControlPointAndLength
: Automatically calculated by the game: `float3`. Default: `-0.25 -0.5 3 0`. Range: `-2.0 -2.0 0.0` to `2.0 2.0 10.0`.
| track =
| track =
; mTrackArray
; mTrackArray

Latest revision as of 01:08, 2 March 2024

This template provides a detailed description of parameters used in the Vehicle Shader for Farming Simulator mods. It should be called in the following format for specific parameter groups:

{{VehicleShaderParameters|group=groupName}}

All supported group name inputs: base scroll offsetUV colorMask track

Replace 'GroupName' with the actual name of the parameter group you wish to display.

Edit the page to see the template text.