Skip to content

Toon Shader 3D #29

Description

@Kiri-Arc-Games

This extension adds a "Toon Shader 3D" behavior for GDevelop's 3D objects (Cube 3D and Model 3D).

It applies:

  • Flat cel-shading lighting (cartoon/anime style), with a configurable number of light bands
  • A calibrated black outline, generated with the classic "inverted hull" technique

It fully supports animated/skinned models (glTF characters with a skeleton) — the outline follows the animation correctly instead of staying in a fixed bind pose.

Everything is configurable directly from the object's Behaviors panel, no code editing required:

  • Thickness: outline thickness, in world units
  • Bands: number of shading bands (2 = flat cartoon look, higher = more gradual)
  • OutlineColor: outline color (defaults to black)

Just add the "Toon Shader 3D" behavior to any 3D object — the shader is applied automatically when the object is created in the scene.

ToonShader3D.zip

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions