#149986 - Ultima2876 - Mon Jan 28, 2008 12:47 pm
Is it possible to have a coloured pyramid (like in the nehe examples) that is toon shaded without making it only one colour?
When the red component of the colour is used to look up the value within the toon shading table, in the above example my pyramid always comes out in shades of grey. Is there a way to make it have its original colours, but... toon shaded?
Is the way this is usually done to redefine the toon table for every polygon you want to have a different colour? Or is there another way?
Thanks
Last edited by Ultima2876 on Mon Jan 28, 2008 4:34 pm; edited 1 time in total
Code: |
glSetToonTableRange(0, 7, RGB15(6,6,6));
glSetToonTableRange(8, 15, RGB15(12,12,12)); glSetToonTableRange(16, 23, RGB15(18,18,18)); glSetToonTableRange(24, 31, RGB15(24,24,24)); |
When the red component of the colour is used to look up the value within the toon shading table, in the above example my pyramid always comes out in shades of grey. Is there a way to make it have its original colours, but... toon shaded?
Is the way this is usually done to redefine the toon table for every polygon you want to have a different colour? Or is there another way?
Thanks
Last edited by Ultima2876 on Mon Jan 28, 2008 4:34 pm; edited 1 time in total