1 registered members (AndrewAMD),
1,014
guests, and 1
spider. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Debugging shader
[Re: Matt_Aufderheide]
#56273
09/28/05 02:26
09/28/05 02:26
|
Joined: Mar 2001
Posts: 3,298 Beverly, Massachusetts
Rhuarc
Expert
|
Expert
Joined: Mar 2001
Posts: 3,298
Beverly, Massachusetts
|
Quote:
To first step in debugging a shader is to first define what the problem is.. do you get compiling errors?
If you get compile errors its pretty easy to track that down,. normally the error window will pop-up telling where the error is and in what line.
If you dont get compile erros and the effect just looks wrong, then you have a logic problem.
To fix logic problems is the hardest thing, but not so hard with simple programs like shaders. First comment out most everything in the shaders and just make it as simpe as possible. Then start adding in stuff, and keep doijg this until the result is not as expected.
That right there perfectly describes my debugging process
-Rhuarc
|
|
|
|