Skip to main content

Behaviour

The shader is separated into a few categories:

  • Shadow
  • Border
  • Finish

Shadow

The shadow is ground part of the shader, what will actually create the stylized shadow-like effects. On the default meshes, the shadow is applied at the bottom of the mesh.

info

The shader determines where the shadow is by checking if the red vertex color of that vertex is above 0.5.

Border

The border is the 'band' or 'ring' around the default meshes. This is an extra part of the shader to create more interesting effects.

info

The shader determines where the border is by checking if the red vertex color of that vertex is below 0.5.

The border UVs are automatically adjusted to retain proportions as the ground shadow mesh is scaled and stretched independantly along the XYZ axes. So you can scale the mesh to make it higher on the Y axis, and scale it on the XZ axis to make it wider without messing up the proportions of the border textures.

Finish

The "Finish" section contains options that modify the border and shadow color and behaviour after they have been calculated.


Mode

You can force the shader into always being in the shadow or always being in the border mode by changing the Mode parameter for Force Shadow or Force Border in the Advanced tab.

If it's set to Force Shadow, border settings will be disabled and every part of the mesh will be interpreted to be the shadow.

If it's set to Force Border, shadow settings will be disabled and every part of the mesh will be interpreted to be the border.