Website powered by

Galactico - Crosshatch Shader

Here is an overview of the main environment shader used for a game I worked on. The goal was to achieve a crosshatch-style shading that dynamically followed the sun position.

This is how the shader behaves compared to the direction of the main light. The position of the crosshatching can then be increased or decreased in each material.

Overview of shader function that sets positions for crosshatch shading. Using the dot product of the object normal and light direction to create the different masks.

Overview of shader function that sets positions for crosshatch shading. Using the dot product of the object normal and light direction to create the different masks.

Each hatch-texture is packed into one RGB texture and then split up and blended in the shader.

Each hatch-texture is packed into one RGB texture and then split up and blended in the shader.