Shaders Overview/VehicleShader: Difference between revisions
No edit summary |
No edit summary |
||
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]] | See all parameters [[Shaders Overview/VehicleShader/AllParams|here]] | ||
Revision as of 13:55, 25 February 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:
- Assign the Shader: In the Giants Editor, link the vehicleShader.xml to your chosen material.
- Adjust Parameters: Modify parameters like RDT to get the desired level of detail for effects such as dirt or scratches.
- 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:
- Motion Path Rubber Variation
- Motion Path Rubber Variation
- Mesh Scroll Variation
- Mesh Scroll Variation with colorMask
- UV Scroll Variation
- UV Scroll Variation with colorMask
- UV Rotate Variation
- UV Rotate Variation with colorMask
- UV Scale Variation
- UV Scale Variation with colorMask
- Second UV Color Mask Variation
- Decal Variation
- Decal with Normal on Third UV Variation
- Decal with NormalMap on Third UV Variation and colorMask support (first UV layer)
- Decal with Color Mask Variation
- Shaking with Color Mask Variation
- Shaking with Color Mask Variation and Decal
- Decal with UV Scroll
- Static Light Variation
- Static Light Slide Variation
- Static Light with Multi-Blink Variation
- Jiggling with Color Mask Variation
- Vertex Rotate with Color Mask Variation
- Wind Bend Variation
- Wind Bend with Color Mask Variation
- Wind Bend with Vertex Color Variation
- Wind Bend with Vertex Color and Decal Variation
- Reflector with Color Mask Variation
- Back Light with Color Mask Variation
- Tire Pressure Deformation Variation
- Tire Pressure Deformation with Second UV Variation
- Smart Rim Scale Variation
- Smart Rim Scale with Color Mask Variation
- Smart Dual Rim with Color Mask Variation
- Smart Hub Dual with Color Mask Variation
- Cable Tray Variation
- Cable Tray with Color Mask Variation
- Cable Tray Chain with Color Mask Variation
- Local Catmull Rom Spline Variation
- Local Catmull Rom with Color Mask Variation
- Local Catmull Rom with Color Mask and UV Scale Variation
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.