Shouldnt it be like thissch:

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

Ahh. Well, “switching off” a shader would leave you with a heap of white polygons flying about. :-)
User avatar
Arexack_Heretic
Dangerous Subversive Element
Dangerous Subversive Element
Posts: 1876
Joined: Tue Jun 07, 2005 7:32 pm
Location: [%H] = Earth surface, Lattitude 52°10'58.19"N, longtitude 4°30'0.25"E.
Contact:

Post 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'.)
Riding the Rocket!
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post 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.
Post Reply