Hello ,
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.
g3d: https://github.com/groverburger/g3d
i need a toon shader for a 3D library called g3d
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
i need a toon shader for a 3D library called g3d
Have Fun Coding!
Code: Select all
g3d = require "libraries/g3d"
Re: i need a toon shader for a 3D library called g3d
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).
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).
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 4 guests