Skip to content

Shader Add ons

Ciro Continisio edited this page Dec 6, 2020 · 7 revisions

Besides the base shading model to define light/shadow areas, we have a system to add extra functionality to shader that we call "shader add-ons”. We have the base shader (/Shaders/Toon.shadergraph) and, on top of that, we add additional effects in the form of these add-ons.

To drive this, we make big use of Subgraphs in Shader Graph. Shader add-ons are modules that can be added - potentially with other add-ons - to the base shading model (which, by the way, is also encapsulated in a Subgraph found at /Shaders/Subgraphs/ToonLighting.subgraph).

This allows us to have shaders for:

  • Toon
  • Toon + Wind
  • Toon + Wind + Masking + Tinting
  • Toon + Dissolve

... and so on.

To better understand this organisation, see the diagram below and check out the shader /Shaders/Toon_Wind.shadergraph in the project:

Shader Add-ons See this image bigger on the task card in the roadmap

Home
Video materials

Basics

World building and Graphics

Game architecture

The game systems explained, with API examples. For programmers.

Game design

How-tos for designers to expand the game's gameplay.

  • Adding quests
  • Adding items
  • Creating dialogues
  • Making a cutscene
Clone this wiki locally