Lighting Models

All In 1 Shader Nodes provides a comprehensive, modular lighting system that gives you complete control over how your materials respond to light. Instead of being locked into a single lighting approach, you can mix and match different lighting components to achieve your desired look.

How It Works

The lighting system is built around specialized nodes that handle different aspects of light calculation:

  • Diffuse/Light Model nodes: Calculate how surfaces respond to direct light

  • Specular Model nodes: Calculate glossy highlights and reflections from light sources

  • Reflection nodes: Handle environment reflections

  • Ambient nodes: Calculate ambient/indirect lighting contribution

Each of these nodes can be used standalone for specific lighting effects, or combined together using the Full Light Model node for complete, physically-accurate material lighting.

Standalone Usage

Use individual lighting nodes when you need specific lighting calculations:

Diffuse - Toon node → Apply to Color → Output

This gives you just the diffuse lighting result, perfect for simple effects or when you're handling other lighting components separately.

Combined Usage with Full Light Model

The Full Light Model node acts as a central hub that merges all lighting components together:

The Full Light Model node automatically combines these components following physically-based or stylized workflows, handling the complex math of blending diffuse, specular, reflections, ambient, and occlusion.

Benefits of This Approach

Flexibility: Use as much or as little lighting as you need. Simple effects use one node, complex materials combine them all.

Mix and Match: Combine different lighting models for unique looks - use Toon diffuse with Classic specular, or Classic diffuse with Toon reflections.

Modular Control: Adjust each lighting component independently without affecting others.

Performance: Only the lighting nodes you use cost performance - unused calculations don't run.

Example

See the GRPH_Demo_ChomperToon graph in the demo (Assets\Plugins\AllIn1ShaderNodes\Demo\Graphs) for a complete example of a toon-shaded character using this lighting system.

In this example, the shader uses:

  • Diffuse - Toon for cel-shaded lighting

  • Specular - Toon for hard-edged highlights

  • Reflections Toon for stylized environment reflections

  • Ambient Color for fill lighting

All combined through the Full Light Model to create a cohesive toon-shaded look.

Last updated