|
New shader features?
#17878
10/06/03 18:41
10/06/03 18:41
|
Joined: Jul 2000
Posts: 27,986 Frankfurt
jcl
OP
Chief Engineer
|
OP
Chief Engineer
Joined: Jul 2000
Posts: 27,986
Frankfurt
|
I would like to know which variables, vectors, matrices and other features you want to have implemented for effect files.
We'll add the inverse view matrix, and a tangent vector instead of the second texture coordinate set - both are required for certain shader effects. Then we'll have basically the same set of shader variables that programs like RenderMonkey or EffectEdit offer, so I guess that's all what's needed for all kind of effects. After implementation of the new light management, we'll also add vectors for the properties of the 8 lights.
If you need anything else, please post it here, and also mention for which kind of shader effect you'd need it (or mention the sample in one of the shader programming books).
It was requested to add C-Script access to the transformation matrices. However the world matrix is different for every rendered entity, so this would not make much sense, or would at least slow down the rendering due to the fixed<->float conversion. So I'd prefer to calculate all required matrices by the engine.
|
|
|
Re: New shader features?
[Re: jcl]
#17881
10/06/03 19:54
10/06/03 19:54
|
Joined: Oct 2002
Posts: 8,939 planet.earth
ello
Senior Expert
|
Senior Expert
Joined: Oct 2002
Posts: 8,939
planet.earth
|
as i see we have those so far. v0[3] - position v3[3] - normal v7[2] - tex coord1 v8[2] - tex coord2
what about getting color-vectors and vertex_weight. this one crossed my way many times when i was looking at some sources i found.
in a description i found there are the following ones: v0[3] - position x,y,z,w v1[3] - vertex weight w,0,0,1 v2[3] - normal x,y,z,1 v3[3] - primary color r,g,b,a v4[3] - secondary color r,g,b,a v5[3] - fog coefficient fc,0,0,1 v6[3] - tex coord1 s,t,r,q v7[3] - tex coord2 s,t,r,q
www.earthcontrol.dequoted: We want to maintain a clean, decent, American family suited forum look... which means you may post zombies or chainsaw massacres, but no erotic.
|
|
|
Re: New shader features?
[Re: ello]
#17885
10/06/03 20:29
10/06/03 20:29
|
Joined: Jul 2000
Posts: 27,986 Frankfurt
jcl
OP
Chief Engineer
|
OP
Chief Engineer
Joined: Jul 2000
Posts: 27,986
Frankfurt
|
|
|
|
|