Open main menu

Changes

Documentation/Tools/SCS Blender Tools/Supported shaders

4,439 bytes added, 14:57, 5 February 2016
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 &quot;paint job&quot; definition file of the truck, otherwise truck paint is configured from AI truck colors palette. ==== Paintjob modes ==== Additionally &quot;aux&quot; parameters inside material are used only for preview purposes. Their usage in 3D view is dependent on truckpaint mode: # &quot;Default&quot; mode (when neither &quot;colormask&quot; or &quot;airbrush&quot; 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.# &quot;Color mask&quot; mode (when &quot;colormask&quot; 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 -&gt; color masked with B channel of paintjob texture,#* Paintjob G Color -&gt; color masked with G channel of paintjob texture,#* Paintjob B Color -&gt; color masked with R channel of paintjob texture,#* Paintjob Base Color -&gt; base paintjob color.# &quot;Airbrush&quot; mode (when &quot;airbrush&quot; 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 -&gt; base paintjob color. <blockquote>NOTE: There are two more modes &quot;flipflake&quot; and &quot;airbrush.flipflake&quot; 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>'''&quot;truckpaint.altuv&quot;''' - 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>'''&quot;truckpaint.airbrush&quot;''' - 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>'''&quot;truckpaint.airbrush.altuv&quot;''' - combined &quot;truckpaint.altuv&quot; and &quot;truckpaint.airbrush&quot; extensions.</p></li><li><p>'''&quot;truckpaint.tsnmap&quot;''' - with extra texture defining normal maps. Both textures are using same UV layer.</p></li><li><p>'''&quot;truckpaint.tsnmap.altuv&quot;''' - with extra texture defining normal maps. Both textures are using same UV layer. Beside normal maps shader also features &quot;truckpaint.altuv&quot; extension.</p></li><li><p>'''&quot;truckpaint.tsnmap.airbrush&quot;''' - with extra texture defining normal maps. Both textures are using same UV layer. Beside normal maps shader also features &quot;truckpaint.airbrush&quot; extension.</p></li><li><p>'''&quot;truckpaint.tsnmap.airbrush.altuv&quot;''' - with extra texture defining normal maps. Both textures are using same UV layer. Beside normal maps shader also features &quot;truckpaint.altuv&quot; and &quot;truckpaint.airbrush&quot; extensions.</p></li><li><p>'''&quot;truckpaint.tsnmapuv&quot;''' - with extra texture defining normal maps using it's own UV layer.</p></li><li><p>'''&quot;truckpaint.tsnmapuv.altuv&quot;''' - with extra texture defining normal maps using it's own UV layer. Beside normal maps shader also features &quot;truckpaint.altuv&quot; extension.</p></li><li><p>'''&quot;truckpaint.tsnmapuv.airbrush&quot;''' - with extra texture defining normal maps using it's own UV layer. Beside normal maps shader also features &quot;truckpaint.airbrush&quot; extension.</p></li><li><p>'''&quot;truckpaint.tsnmapuv.airbrush.altuv&quot;''' - with extra texture defining normal maps using it's own UV layer. Beside normal maps shader also features &quot;truckpaint.altuv&quot; and &quot;truckpaint.airbrush&quot; extensions.</p></li></ol> 
=== unlit.tex ===
=== unlit.vcol.tex ===