gunslinger
03-16-2004, 01:49 AM
hi,
id' like to debug my fragment program, but i dunno how to get the registers values... how can i have em passed to the std output? (just like a cout)
my problem is the i am using a normalized cubemap to access a diffuse light map... now i have polarized and biased the normals, packed em into a cubemap and passed the whole thing to the fp.
In the fp i MAD normal, normal, 2.0, -1.0; and use this value to access the second cubemap.
conceptually this is correct, but then, surprise, the sphere isn't shaded... probably due an indexing problem my normal points just in a single direction (maybe it unpacks it always clamped to 1)... so a lil output would be more than welcome...
thx and sorry for my lameness the G.
id' like to debug my fragment program, but i dunno how to get the registers values... how can i have em passed to the std output? (just like a cout)
my problem is the i am using a normalized cubemap to access a diffuse light map... now i have polarized and biased the normals, packed em into a cubemap and passed the whole thing to the fp.
In the fp i MAD normal, normal, 2.0, -1.0; and use this value to access the second cubemap.
conceptually this is correct, but then, surprise, the sphere isn't shaded... probably due an indexing problem my normal points just in a single direction (maybe it unpacks it always clamped to 1)... so a lil output would be more than welcome...
thx and sorry for my lameness the G.