Difference between revisions of "Legacy:Splatting"

m (Matthew moved page Splatting to Legacy:Splatting without leaving a redirect: Superseded by Materials#Splatting)
(Make page a redirect)
Line 1: Line 1:
Splatting is supported from SuperTuxKart 0.8. This article, however, is for STK 0.8.1 or better
#REDIRECT [[Materials#Splatting]]
Setup a mesh with 2 UV layers.
<gallery mode="packed" widths="800px" heights="289px">
On the first layer, texture the mesh. This layer will have two uses :
* It determines the UV layout that will be used, no matter if splatting is activated or no. Therefore, make sure the UV layout is continuous on areas where there should be smooth transitions.
* The textures selected on this first layer will be used when the user does not support shaders. Therefore, you can assign a texture to each face so that users who have shaders disabled will see an acceptable fallback,
On the second layer, place a splatting map. You can draw red, green, blue and black. Then configure the splatting texture in the materials properties and assign a texture to each color
<gallery mode=packed widths=295px heights=430px>
In this case, the specified textures will be placed on the terrain according to the splatting map, using the UV mapping from the first layer

Latest revision as of 22:59, 16 January 2017