Page 2 of 2
Posted: Fri May 04, 2007 9:00 pm
by JensAyton
Ahh. Well, “switching off” a shader would leave you with a heap of white polygons flying about. :-)
Posted: Fri May 04, 2007 9:06 pm
by Arexack_Heretic
ah...I just fail to appreciate the finer points of shader technology.
...so shaders is actually a single method-object, taking care of the 'skin' of the ship-object? (I mean: there is only one shader for an object and switching it off wouyld leave a model 'nekid'.)
Posted: Fri May 04, 2007 10:03 pm
by JensAyton
There are one or two shaders per material. (Each texture name in a DAT file now defines a material, of which shader-based materials are one type, as outlined
elsewhere. Each object can have up to 7 materials at the moment.) These come in two types: vertex shaders and fragment shaders (a
fragment being essentially an output pixel). You can’t have more than one of each per material.