1,744
edits
Changes
Jump to navigation
Jump to search
→truckpaint
Special shader used only for skyboxes. Basically this shader combines three textures with blending defined by Layer Blend factor and is changing during the day night cycle.
=== truckpaint === Truckpaint shader as the name suggests is the shader for truck color paint. Shader features combination of base and paintjob textures. The final result of this shader is dependent on configuration of the truck paint inside definition files as the shader supports different output types. If the truck is driven by the player, shader is configured by "paint job" definition file of the truck, otherwise truck paint is configured from AI truck colors palette. ==== Paintjob modes ==== Additionally "aux" parameters inside material are used only for preview purposes. Their usage in 3D view is dependent on truckpaint mode: # "Default" mode (when neither "colormask" or "airbrush" flavor is used) with no additional color settings. Paintjob texture is there only for export porpuses so that proper UV mapping for paintjob can be set.# "Color mask" mode (when "colormask" flavor is used) where paintjob texture RGB channels are used to color mask base truckpaint output. Auxiliary attributes are used in 3D viewport as follows:#* Paintjob R Color -> color masked with B channel of paintjob texture,#* Paintjob G Color -> color masked with G channel of paintjob texture,#* Paintjob B Color -> color masked with R channel of paintjob texture,#* Paintjob Base Color -> base paintjob color.# "Airbrush" mode (when "airbrush" flavor is used) uses paintjob texture as airbrush mask on base truckpaint output. Auxiliary attributes are used in 3D viewport as follows:#* Paintjob Base Color -> base paintjob color. <blockquote>NOTE: There are two more modes "flipflake" and "airbrush.flipflake" which are not yet implemented inside 3D viewport but they can be defined inside definition files anyway, because no additional data have to be exported for them.</blockquote> ==== Useful flavor combinations ===<ol><li><p>'''"truckpaint.altuv"''' - exports alternative UV layer for paint job. Alternative UV layer has to be specified in paintjob texture.</p><blockquote><p>NOTE: Not using this extension alternative UV won't be exported and thus can not be used in definition files for paint job.</p></blockquote></li><li><p>'''"truckpaint.airbrush"''' - uses paint job as airbrush mask. Paintjob texture is multiplied with base truck paint color by factor of paintjob texture alpha channel.</p><blockquote><p>NOTE: May or may not be used, shader will give the same result as usage of this extension is specified in definition files and the extension doesn't effect exported data.</p></blockquote></li><li><p>'''"truckpaint.airbrush.altuv"''' - combined "truckpaint.altuv" and "truckpaint.airbrush" extensions.</p></li><li><p>'''"truckpaint.tsnmap"''' - with extra texture defining normal maps. Both textures are using same UV layer.</p></li><li><p>'''"truckpaint.tsnmap.altuv"''' - with extra texture defining normal maps. Both textures are using same UV layer. Beside normal maps shader also features "truckpaint.altuv" extension.</p></li><li><p>'''"truckpaint.tsnmap.airbrush"''' - with extra texture defining normal maps. Both textures are using same UV layer. Beside normal maps shader also features "truckpaint.airbrush" extension.</p></li><li><p>'''"truckpaint.tsnmap.airbrush.altuv"''' - with extra texture defining normal maps. Both textures are using same UV layer. Beside normal maps shader also features "truckpaint.altuv" and "truckpaint.airbrush" extensions.</p></li><li><p>'''"truckpaint.tsnmapuv"''' - with extra texture defining normal maps using it's own UV layer.</p></li><li><p>'''"truckpaint.tsnmapuv.altuv"''' - with extra texture defining normal maps using it's own UV layer. Beside normal maps shader also features "truckpaint.altuv" extension.</p></li><li><p>'''"truckpaint.tsnmapuv.airbrush"''' - with extra texture defining normal maps using it's own UV layer. Beside normal maps shader also features "truckpaint.airbrush" extension.</p></li><li><p>'''"truckpaint.tsnmapuv.airbrush.altuv"''' - with extra texture defining normal maps using it's own UV layer. Beside normal maps shader also features "truckpaint.altuv" and "truckpaint.airbrush" extensions.</p></li></ol>
=== unlit.tex ===
=== unlit.vcol.tex ===