Yikes my eyes! tongue ^^Thank you very much^^

It works like a charm!! XD
I never would have been able to do this myself.. tongue However, I do see (somewhat) how you did it... and wow.. Genius tongue 1 small step for man.. well this man tongue

incase anyone else is interested, I implemented the black outline into it. Hope you dont mind laugh

at the end of the .fx file you will see:
Code:
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 laugh

Greatest Regards,
Devon

Last edited by DevoN; 06/23/11 22:29.

A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com