Table of Contents

Gamelogic Fx Cross-hatching

Version 6.1.0

Gamelogic Fx Cross-hatching provides a collection of shaders for producing cross-hatching effects in Unity. This can be used to create stylized rendering resembling drawings with pencils, crayons, pastels, markers, or pen.

The basic technique is to apply layers of hatching textures in a way to resemble the original shading. They differ in how colors are mixed when these layers overlay, creating different styles.

  • Simple-hatch: uses additive blending (A + B - 1), which closely approximates CMY (multiplicative) blending for values in [0, 1]. This is a good choice for wet mediums such as ink, watercolor, or markers. It is the most efficient to render, and can be combined with color mapping to resemble more complex shaders.

  • Convex hull hatching: Uses lerp to mix colors, which means all resulting colors fall inside the convex hull of the primary colors used. This is a good choice for dry mediums such as pencil, charcoal, or pastels. (Generally blue and yellow don't make green, so adding a green in the primaries is often required to make the technique work well.)

  • Mixbox convex hull hatching: Uses Mixbox lerping to mix colors, a mixing model that resemble physical media better. Blue and green can make green, and overall colors are more vibrant. This is the most expensive to render, but is the best choice for most media. It requires the (free) Mixbox plugin to work. See Mixbox for installation instructions.

Samples

The package includes a sample scene demonstrating the various dithering effects and their settings. See How to import samples for instructions on how to import the sample scene into your project.

Important

Make sure you open the scene in the folder that corresponds to the rendering pipeline you are using.

For Built-in: Assets/Samples/[Package]/[Version]/[Package Samples Root]/[Sample]/BuiltIn/

For URP: Assets/Samples/[Package]/[Version]/[Package Samples Root]/[Sample]/URP/

Quick Start

Built-in Render Pipeline

  1. Select your camera in the Hierarchy.
  2. Click Add Component and search for the effect (e.g. Simple Hatch).
  3. The effect is active immediately — adjust properties in the Inspector.

See How to use post effects for a full walkthrough.

Universal Render Pipeline (URP)

  1. Open your URP Renderer asset.
  2. In the Renderer Features list, click Add Renderer Feature and search for the effect.
  3. Expand the feature to adjust its properties.

See How to use post effects for a full walkthrough.

Included Shaders

Post-effect shaders

Create full-screen cross-hatching using the Built-in Render Pipeline or URP.

Pipeline Support

This package supports both:

  • Built-in Render Pipeline
  • Universal Render Pipeline (URP)

Most settings are identical in both pipelines. Differences are documented in the 📘 How-to guide.

Additional Tools Included (Gamelogic Fx)

The package also ships with Gamelogic Fx, which provides reusable utilities for effect development: