I’m still try to render toon shading.
Here is the base alorithm:
_ Render only filled front faces with toon texture.
_ Render only back faces in wire frame with size of 10 for example in black.(this render the silhouette)
With two pass, the algorithm works well.
Now, i try to render the scene in one pass!
I set the toon texture with GL_MODULATE.
In the vertex program, i put white color in the register for front face color
and black color in the register for back face color and then render the scene(front filled face and back face in line).
The problem is that back face(in line) are in toon shading and i want them black(for the silhouette).
When did back face color are used in OpenGL?
Do i have to activate an extension or OpenGL lighting system??