Jump to content
  • Advertisement
Sign in to follow this  
Atridas

GLSL cel-shading

This topic is 3935 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello I found how to render using cel-shading (http://www.gamedev.net/reference/programming/features/celshading/) but there were some thinks in the algorithm that i didn't completly like. 1- You have to paint 2 timers every primitive. 2- You have to do lighting in the CPU, when GPU can handle it perfectly well. So, now that I've just started learning GLSL i'll try to code this in a shader. So... - how can I find if I'm at font face or at back face? - how can I increase the line width? (When I'm in a back face)

Share this post


Link to post
Share on other sites
Advertisement
Strictly speaking, you're talking about edge determination or detection, not cel shading. Cel shading generally refers more to the color quantization process involving (typically) the diffuse lighting term as a lookup into a quantization texture.

Here's a paper on hardware-determined feature edges by Morgan McGuire. It's a pretty good basic technique.

Share this post


Link to post
Share on other sites
well... I didn't understand it so much... (I'm not english, so some tech papers are hard to understand for me)

I've tried


gl_PointSize = 15.0;



in my vertex shader, but it doesn't seems to work... what should I do?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!