• Advertisement

Archived

This topic is now archived and is closed to further replies.

vertex shader

This topic is 5981 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hello all just curious over something.. when we use programmable vertex shader in dx8, the are certain constant regs (if they are used in the modeling), which have to be initialized by some value. when it''s rendering time, assuming before call to DP () or DIP (), one of the shader line reads: dp4 r1.x, c[0], c[1] mov oPos, r1 the question here is, what happens, if c[1] has never been initialized before the line by any setvertexshaderconstant () call. does c[1] has any default vector value. (assume that c[0] is initialized by some value). i haven''t try this yet, but i''m just exploring the possibilities.

Share this post


Link to post
Share on other sites
Advertisement
Good question. I don''t know the real answer, but I would assume that a good answer is alot like the general programming answer - if you use something, never assume that the driver, etc. has initialized it to anything useful...

Share this post


Link to post
Share on other sites

  • Advertisement