i need a toon shader for a 3D library called g3d

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
Odod5000
Prole
Posts: 1
Joined: Thu Jun 06, 2024 4:41 pm

i need a toon shader for a 3D library called g3d

Post by Odod5000 »

Hello :awesome: ,
I need some help making a toon shader for a 3D library called g3d.
I am making a 3D survival game with g3d and need a toon shader so my models dont look flat.
Can you please help me, it would be greatly appreciated. :rofl:

g3d: https://github.com/groverburger/g3d
Have Fun Coding! :awesome:

Code: Select all

g3d = require "libraries/g3d"
:ultrahappy:
RNavega
Party member
Posts: 355
Joined: Sun Aug 16, 2020 1:28 pm

Re: i need a toon shader for a 3D library called g3d

Post by RNavega »

Hi, welcome.
Where are you stuck, and what have you already tried?

Lighting is a common thing to do in 3D engines, have you tried searching the G3D thread to see if others have some previous work that you can start from?
For example, searching for the word "lighting" only within that thread (the search bar below the thread title):
search.php?keywords=lighting&t=86350&sf=msgonly

Toon lighting is standard lighting that's been quantized. Like quantizing it to two steps so you only have lit / unlit colors that cause a very sharp shading, or using more steps for a softer transition, or even a custom gradient ramp to fine-tune the look.
Toon lighting effects are in a category called NPR (non-photorealistic rendering).
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 4 guests