Yikes my eyes!
^^Thank you very much^^
It works like a charm!! XD
I never would have been able to do this myself..
However, I do see (somewhat) how you did it... and wow.. Genius
1 small step for man.. well this man
incase anyone else is interested, I implemented the black outline into it. Hope you dont mind
at the end of the .fx file you will see:
technique Shading
{
pass P0
{
zenable=true;
zwriteenable=true;
alphablendenable=false;
alphatestenable=true;
AlphaRef=0;
AlphaFunc=Greater;
VertexShader = compile vs_2_0 VS();
PixelShader = compile ps_2_0 PS();
}
/////////////////////
//Add the bottom lines of code for the black outline:
pass p1 // ink it
{
CULLMODE=CW;
vertexShaderConstant[0]=<matWorldViewProj>;
vertexShaderConstant[16]=0.9; // outline thickness
vertexShader = asm
{
vs_1_0
dcl_position v0
dcl_normal v3
dcl_texcoord v7
mov r0,v0
mul r1,c16.x,v3
// Scale the normal
add r0.xyz,r0.xyz,r1.xyz
m4x4 oPos,r0,c0
// Transorm position to clip space
mov oD0, c0
mov r0,c0
};
}
}
[I just ripped the ink it part from the other toon shader]
Once again, Thank you Hummel!
Do you have a webpage? I'd like to add you to my credits list, and provide a link to your website
Greatest Regards,
Devon