Shaders Overview/VehicleShader: Difference between revisions

From North Modding Company
 
(7 intermediate revisions by the same user not shown)
Line 6: Line 6:
== Understanding the Parameters ==
== Understanding the Parameters ==
The ''vehicleShader.xml'' file hosts a range of parameters that control different aspects of the vehicle's appearance:
The ''vehicleShader.xml'' file hosts a range of parameters that control different aspects of the vehicle's appearance:
<br>
See all parameters [[Shaders Overview/VehicleShader/AllParams|here]]


; '''RDT'''
: Manages details related to reflective textures such as scratches, dirt, and snow.
; '''dirtColor'''
: Specifies the overlay color for dirt effects on the vehicle.
; '''offsetUV'''
: Pertains to the manipulation of UV coordinates for texture animations on the model's surface.
; '''colorMat'''
: An array parameter that facilitates color customization through masking, enabling multiple color variations on a single model.
''... additional explanations for each parameter group ...''


== Applying the Vehicle Shader ==
== Applying the Vehicle Shader ==
Line 31: Line 20:
The Vehicle Shader includes multiple variations for different effects. Here are some, with more details on their dedicated pages:
The Vehicle Shader includes multiple variations for different effects. Here are some, with more details on their dedicated pages:


* [[Shader/VehicleShader/MotionPathRubber|Motion Path Rubber Variation]]
* [[Shaders Overview/VehicleShader/MotionPathRubber|Motion Path Rubber]]
* [[Shader/VehicleShader/MeshScroll|Mesh Scroll Variation]]
* [[Shaders Overview/VehicleShader/MotionPathRubberSecondUVColorMask|Motion Path Rubber Second UV and ColorMask]]
* [[Shader/VehicleShader/UVScroll|UV Scroll Variation]]
* [[Shaders Overview/VehicleShader/MotionPathSecondUVColorMask|Motion Path Second UV and ColorMask]]
* [[Shader/VehicleShader/MotionPathRubber|Motion Path Rubber Variation]]
* [[Shaders Overview/VehicleShader/MeshScroll|Mesh Scroll]]
* [[Shader/VehicleShader/MeshScroll|Mesh Scroll Variation]]
* [[Shaders Overview/VehicleShader/MeshScrollColorMask|Mesh Scroll colorMask]]
* [[Shader/VehicleShader/UVScroll|UV Scroll Variation]]
* [[Shaders Overview/VehicleShader/UVScroll|UV Scroll]]
* [[Shader/VehicleShader/UVRotate|UV Rotate Variation]]
* [[Shaders Overview/VehicleShader/UVScrollColorMask|UV Scroll colorMask]]
* [[Shader/VehicleShader/UVScale|UV Scale Variation]]
* [[Shaders Overview/VehicleShader/UVRotate|UV Rotate]]
* [[Shader/VehicleShader/SecondUVColorMask|Second UV Color Mask Variation]]
* [[Shaders Overview/VehicleShader/UVRotateColorMask|UV Rotate colorMask]]
* [[Shader/VehicleShader/Decal|Decal Variation]]
* [[Shaders Overview/VehicleShader/UVScale|UV Scale]]
* [[Shader/VehicleShader/DecalNormalThirdUV|Decal with Normal on Third UV Variation]]
* [[Shaders Overview/VehicleShader/UVScaleColorMask|UV Scale colorMask]]
* [[Shader/VehicleShader/DecalColorMask|Decal with Color Mask Variation]]
* [[Shaders Overview/VehicleShader/SecondUVColorMask|Second UV Color Mask]]
* [[Shader/VehicleShader/ShakingColorMask|Shaking with Color Mask Variation]]
* [[Shaders Overview/VehicleShader/Decal|Decal]]
* [[Shader/VehicleShader/StaticLight|Static Light Variation]]
* [[Shaders Overview/VehicleShader/DecalNormalThirdUV|Decal NormalThirdUV]]
* [[Shader/VehicleShader/StaticLightSlide|Static Light Slide Variation]]
* [[Shaders Overview/VehicleShader/DecalNormalThirdUVColorMask|Decal NormalThirdUV colorMask]]
* [[Shader/VehicleShader/StaticLightMultiBlink|Static Light with Multi-Blink Variation]]
* [[Shaders Overview/VehicleShader/DecalColorMask|Decal ColorMask]]
* [[Shader/VehicleShader/JigglingColorMask|Jiggling with Color Mask Variation]]
* [[Shaders Overview/VehicleShader/ShakingColorMask|Shaking ColorMask]]
* [[Shader/VehicleShader/VertexRotateColorMask|Vertex Rotate with Color Mask Variation]]
* [[Shaders Overview/VehicleShader/ShakingColorMaskDecal|Shaking ColorMask Decal]]
* [[Shader/VehicleShader/WindBend|Wind Bend Variation]]
* [[Shaders Overview/VehicleShader/DecalUvScroll|Decal UvScroll]]
* [[Shader/VehicleShader/WindBendColorMask|Wind Bend with Color Mask Variation]]
* [[Shaders Overview/VehicleShader/StaticLight|Static Light]]
* [[Shader/VehicleShader/WindBendVertexColor|Wind Bend with Vertex Color Variation]]
* [[Shaders Overview/VehicleShader/StaticLightSlide|Static Light Slide]]
* [[Shader/VehicleShader/WindBendVertexColorDecal|Wind Bend with Vertex Color and Decal Variation]]
* [[Shaders Overview/VehicleShader/StaticLightMultiBlink|Static Light Multi-Blink]]
* [[Shader/VehicleShader/ReflectorColorMask|Reflector with Color Mask Variation]]
* [[Shaders Overview/VehicleShader/JigglingColorMask|Jiggling ColorMask]]
* [[Shader/VehicleShader/BackLightColorMask|Back Light with Color Mask Variation]]
* [[Shaders Overview/VehicleShader/VertexRotateColorMask|Vertex Rotate Color Mask]]
* [[Shader/VehicleShader/TirePressureDeformation|Tire Pressure Deformation Variation]]
* [[Shaders Overview/VehicleShader/WindBend|Wind Bend]]
* [[Shader/VehicleShader/TirePressureDeformationSecondUV|Tire Pressure Deformation with Second UV Variation]]
* [[Shaders Overview/VehicleShader/WindBendColorMask|Wind Bend with Color Mask]]
* [[Shader/VehicleShader/Rim|Smart Rim Scale Variation]]
* [[Shaders Overview/VehicleShader/WindBendVertexColor|Wind Bend with Vertex Color]]
* [[Shader/VehicleShader/RimColorMask|Smart Rim Scale with Color Mask Variation]]
* [[Shaders Overview/VehicleShader/WindBendVertexColorDecal|Wind Bend with Vertex Color and Decal]]
* [[Shader/VehicleShader/RimDualColorMask|Smart Dual Rim with Color Mask Variation]]
* [[Shaders Overview/VehicleShader/ReflectorColorMask|Reflector with ColorMask]]
* [[Shader/VehicleShader/HubDualColorMask|Smart Hub Dual with Color Mask Variation]]
* [[Shaders Overview/VehicleShader/BackLightColorMask|Back Light with ColorMask]]
* [[Shader/VehicleShader/CableTray|Cable Tray Variation]]
* [[Shaders Overview/VehicleShader/TirePressureDeformation|Tire Pressure Deformation]]
* [[Shader/VehicleShader/CableTrayColorMask|Cable Tray with Color Mask Variation]]
* [[Shaders Overview/VehicleShader/TirePressureDeformationSecondUV|Tire Pressure Deformation SecondUV]]
* [[Shader/VehicleShader/CableTrayChainColorMask|Cable Tray Chain with Color Mask Variation]]
* [[Shaders Overview/VehicleShader/Rim|Smart Rim Scale]]
* [[Shader/VehicleShader/LocalCatmullRom|Local Catmull Rom Spline Variation]]
* [[Shaders Overview/VehicleShader/RimColorMask|Smart Rim Scale ColorMask]]
* [[Shader/VehicleShader/LocalCatmullRomColorMask|Local Catmull Rom with Color Mask Variation]]
* [[Shaders Overview/VehicleShader/RimDualColorMask|Smart Dual Rim ColorMask]]
* [[Shader/VehicleShader/LocalCatmullRomColorMaskUVScale|Local Catmull Rom with Color Mask and UV Scale Variation]]
* [[Shaders Overview/VehicleShader/HubDualColorMask|Smart Hub Dual ColorMask]]
* [[Shaders Overview/VehicleShader/CableTray|Cable Tray Variation]]
* [[Shaders Overview/VehicleShader/CableTrayColorMask|Cable Tray with ColorMask]]
* [[Shaders Overview/VehicleShader/CableTrayChainColorMask|Cable Tray Chain with ColorMask]]
* [[Shaders Overview/VehicleShader/LocalCatmullRom|Local Catmull Rom Spline Variation]]
* [[Shaders Overview/VehicleShader/LocalCatmullRomColorMask|Local Catmull Rom with ColorMask]]
* [[Shaders Overview/VehicleShader/LocalCatmullRomColorMaskUVScale|Local Catmull Rom with ColorMask and UV Scale]]


== Tips for Modders ==
== Tips for Modders ==

Latest revision as of 23:57, 1 March 2024

Vehicle Shader Guide

Overview

The Vehicle Shader in Farming Simulator is utilized for rendering various components of vehicles with advanced visual effects. This shader allows for the implementation of dynamic textures that can represent dirt, wear, and environmental interactions.

Understanding the Parameters

The vehicleShader.xml file hosts a range of parameters that control different aspects of the vehicle's appearance:
See all parameters here


Applying the Vehicle Shader

To apply the Vehicle Shader to your vehicle models:

  1. Assign the Shader: In the Giants Editor, link the vehicleShader.xml to your chosen material.
  2. Adjust Parameters: Modify parameters like RDT to get the desired level of detail for effects such as dirt or scratches.
  3. Texture Setup: Ensure that your texture maps, such as diffuse, normal, or specular maps, are correctly assigned to the shader.

Shader Variations

The Vehicle Shader includes multiple variations for different effects. Here are some, with more details on their dedicated pages:

Tips for Modders

  • Start by creating a copy of the shader file before any modification.
  • Test changes incrementally to observe their effects both in the Giants Editor and in-game.

Troubleshooting

If you encounter issues:

  • Shader Not Rendering: Verify the accuracy of texture paths and parameter ranges.
  • Unexpected Visual Effects: Review the specific requirements for the chosen shader variation such as vertex colors or UV map arrangements.

With this guide and the detailed sub-pages for each variation, modders at all levels can effectively use the Vehicle Shader to improve their mods.