|
1 registered members (TipmyPip),
18,449
guests, and 6
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: something to show, something to ask
[Re: ello]
#17627
09/28/03 21:01
09/28/03 21:01
|
Joined: May 2002
Posts: 7,441
ventilator
Senior Expert
|
Senior Expert
Joined: May 2002
Posts: 7,441
|
Quote:
so registers get cleared before the next run of the asm-script?
yes, registers don't keep their contents when the vertexshader ends. the shader gets executed for each vertex individually and only information about the current vertex is known.
Quote:
i also like to see an example on how to implement a pixel shader, in betatext there is only vertex shader.
have a look at my terrain multitexturing shader! it's a very simple vertex/pixelshader example.
Quote:
so, if they are provided by the engine, i could need a complete overview which are available, cause the general informations on vertex and pixel shader assembler available on the net are different to the ones which come with the engine.
it's always
v0[3] - position v3[3] - normal v7[2] - tex coord1 v8[2] - tex coord2
with a6! nothing else is available.
v8 is a second texture coordinate set which is used for the shadowmaps on levelgeometry i guess. so you won't need this for models, terrains or sprites.
|
|
|
|
|
|