Pretty selexplainitory, it looks like a comic book.
Some side notes (if you cant read shader code):
- Only effects models (maybe do textures, etc later)
- This is just a simple edge detection formula, (all credit goes to the four or five wiki pages i referenced)
- Effects all models(mesh, not always the entire model) that have evnmap(md5envmap), mask(md5mask), and normals(md5bumpmap). If you do not have all of these set then the model will not use the code :)
- I had to add md5env maps to inky and captaincannon, if you dont put these new md5.cfgs in, then they will not render (see note above)
- Doesnt work for orgo (hes too old, and lacks the maps needed)
- This formula can be simply modified to make a vary of effects :) the general formula is:
if( dot(camdir, normal) (less than) mix(minedge, maxedge, max(camdir, normal){
colorout *= newcolor; //usually a percentage
}
doing this multiple times causes cel shading, setting newcolor to 0.0 makes an outline :) petty simple. You could add rim lighting with this as well.
chasester
Ps: this may be in the new sauerx release
we realy need to fix the tag error, cuz its the same as the greaterthan sign :)
see code on lines:1164-1181 of glsl.cfg :)