Shaders Overview/VehicleShader: Difference between revisions
m (T-Bone moved page Shader/VehicleShader to Shaders Overview/VehicleShader) |
|||
(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]] | |||
== 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: | ||
* [[ | * [[Shaders Overview/VehicleShader/MotionPathRubber|Motion Path Rubber]] | ||
* [[ | * [[Shaders Overview/VehicleShader/MotionPathRubberSecondUVColorMask|Motion Path Rubber Second UV and ColorMask]] | ||
* [[ | * [[Shaders Overview/VehicleShader/MotionPathSecondUVColorMask|Motion Path Second UV and ColorMask]] | ||
* [[ | * [[Shaders Overview/VehicleShader/MeshScroll|Mesh Scroll]] | ||
* [[ | * [[Shaders Overview/VehicleShader/MeshScrollColorMask|Mesh Scroll colorMask]] | ||
* [[ | * [[Shaders Overview/VehicleShader/UVScroll|UV Scroll]] | ||
* [[ | * [[Shaders Overview/VehicleShader/UVScrollColorMask|UV Scroll colorMask]] | ||
* [[ | * [[Shaders Overview/VehicleShader/UVRotate|UV Rotate]] | ||
* [[ | * [[Shaders Overview/VehicleShader/UVRotateColorMask|UV Rotate colorMask]] | ||
* [[ | * [[Shaders Overview/VehicleShader/UVScale|UV Scale]] | ||
* [[ | * [[Shaders Overview/VehicleShader/UVScaleColorMask|UV Scale colorMask]] | ||
* [[ | * [[Shaders Overview/VehicleShader/SecondUVColorMask|Second UV Color Mask]] | ||
* [[ | * [[Shaders Overview/VehicleShader/Decal|Decal]] | ||
* [[ | * [[Shaders Overview/VehicleShader/DecalNormalThirdUV|Decal NormalThirdUV]] | ||
* [[ | * [[Shaders Overview/VehicleShader/DecalNormalThirdUVColorMask|Decal NormalThirdUV colorMask]] | ||
* [[ | * [[Shaders Overview/VehicleShader/DecalColorMask|Decal ColorMask]] | ||
* [[ | * [[Shaders Overview/VehicleShader/ShakingColorMask|Shaking ColorMask]] | ||
* [[ | * [[Shaders Overview/VehicleShader/ShakingColorMaskDecal|Shaking ColorMask Decal]] | ||
* [[ | * [[Shaders Overview/VehicleShader/DecalUvScroll|Decal UvScroll]] | ||
* [[ | * [[Shaders Overview/VehicleShader/StaticLight|Static Light]] | ||
* [[ | * [[Shaders Overview/VehicleShader/StaticLightSlide|Static Light Slide]] | ||
* [[ | * [[Shaders Overview/VehicleShader/StaticLightMultiBlink|Static Light Multi-Blink]] | ||
* [[ | * [[Shaders Overview/VehicleShader/JigglingColorMask|Jiggling ColorMask]] | ||
* [[ | * [[Shaders Overview/VehicleShader/VertexRotateColorMask|Vertex Rotate Color Mask]] | ||
* [[ | * [[Shaders Overview/VehicleShader/WindBend|Wind Bend]] | ||
* [[ | * [[Shaders Overview/VehicleShader/WindBendColorMask|Wind Bend with Color Mask]] | ||
* [[ | * [[Shaders Overview/VehicleShader/WindBendVertexColor|Wind Bend with Vertex Color]] | ||
* [[ | * [[Shaders Overview/VehicleShader/WindBendVertexColorDecal|Wind Bend with Vertex Color and Decal]] | ||
* [[ | * [[Shaders Overview/VehicleShader/ReflectorColorMask|Reflector with ColorMask]] | ||
* [[ | * [[Shaders Overview/VehicleShader/BackLightColorMask|Back Light with ColorMask]] | ||
* [[ | * [[Shaders Overview/VehicleShader/TirePressureDeformation|Tire Pressure Deformation]] | ||
* [[ | * [[Shaders Overview/VehicleShader/TirePressureDeformationSecondUV|Tire Pressure Deformation SecondUV]] | ||
* [[ | * [[Shaders Overview/VehicleShader/Rim|Smart Rim Scale]] | ||
* [[ | * [[Shaders Overview/VehicleShader/RimColorMask|Smart Rim Scale ColorMask]] | ||
* [[ | * [[Shaders Overview/VehicleShader/RimDualColorMask|Smart Dual Rim ColorMask]] | ||
* [[ | * [[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:
- 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
- Motion Path Rubber Second UV and ColorMask
- Motion Path Second UV and ColorMask
- Mesh Scroll
- Mesh Scroll colorMask
- UV Scroll
- UV Scroll colorMask
- UV Rotate
- UV Rotate colorMask
- UV Scale
- UV Scale colorMask
- Second UV Color Mask
- Decal
- Decal NormalThirdUV
- Decal NormalThirdUV colorMask
- Decal ColorMask
- Shaking ColorMask
- Shaking ColorMask Decal
- Decal UvScroll
- Static Light
- Static Light Slide
- Static Light Multi-Blink
- Jiggling ColorMask
- Vertex Rotate Color Mask
- Wind Bend
- Wind Bend with Color Mask
- Wind Bend with Vertex Color
- Wind Bend with Vertex Color and Decal
- Reflector with ColorMask
- Back Light with ColorMask
- Tire Pressure Deformation
- Tire Pressure Deformation SecondUV
- Smart Rim Scale
- Smart Rim Scale ColorMask
- Smart Dual Rim ColorMask
- Smart Hub Dual ColorMask
- Cable Tray Variation
- Cable Tray with ColorMask
- Cable Tray Chain with ColorMask
- Local Catmull Rom Spline Variation
- Local Catmull Rom with ColorMask
- Local Catmull Rom with ColorMask and UV Scale
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.