It's all good.
Just overflew them again, I still need to "learn" them, but I think those are what I was looking for, we'll see. Gonna mess with them this weekend.
Edit:
Quick question, just so I understand this, excuse my utter noobness:
h_color2_specmap_bump.psh (I spread it out a bit so it's easier to read)
Doesn't // = comment? Or does //-- mean something totally different? What exactly to the points represent, just separation? If // does mean comment, are the brackets included in the comment or do they actually do something? Sorry, completely new to this, only got a mild background when it comes to this.
Just overflew them again, I still need to "learn" them, but I think those are what I was looking for, we'll see. Gonna mess with them this weekend.
Edit:
Quick question, just so I understand this, excuse my utter noobness:
h_color2_specmap_bump.psh (I spread it out a bit so it's easier to read)
Code:
FORM...öPSHPFORM...ê0000PSRC....ps.1.1....
//-- t0 holds normal map and specular mask in alpha..
//-- t1 holds light vector (L)..
//-- t2 holds half angle vector (H)..
//-- t3 holds diffuse color map with hue mask in the alpha channel....
//-- sample normal map..tex t0....
//-- calculate u = N dot L..texm3x2pad t1, t0_bx2 ....
//-- calculate v = N dot H..
//-- looks up (u,v) in texture at stage 2..texm3x2tex t2, t0_bx2 ....
//-- sample diffuse map color..tex t3....
//-- add diffuse vertex lighting to colored dot3 lighting..mad_sat r0, t2, c[dot3LightDiffuseColor], v0....
//determine hue at pixel - lerp texture factors with texture alpha..lrp r1, t3.a, c[textureFactor2], c[textureFactor]....
//-- modulate hue against diffuse texture..mul r1, r1, t3....
//-- modulate hued texture against diffuse lighting..mul r0, r1, r0....
//-- mask specular, modulate with material specular color..mul r1, t2.a, t0.a..mul r1, r1, c[materialSpecularColor]....
//-- color with the specular dot3 color, add diffuse/texture..mad r0.rgb, r1, c[dot3LightSpecularColor],r0..+..mov r0.a, c[alphaFadeOpacity]...PEXE...¸..ÿÿB......°G......°..ä´H......°..ä´B......°..........ä°..ä ..ä...........ÿ°..ä ..ä ..........ä...ä°..........ä...ä...........ÿ°..ÿ°..........ä...ä ..........ä...ä ..ä....@......ä ÿÿ..