as far I can see it all you need is that part of the effect:
Code:
technique toon
{

pass outlines
{
CULLMODE=CW;
vertexShaderConstant[0] = <matWorldViewProj>;
vertexShaderConstant[16] = <vecSkill41.y/20.>;

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
};
}
}



PS: what exactly do you mean with "the outlines do not change during camera movement"? Do you refere to the inconsistence of pp-outlines or the fact that geometry based outlines thickness is realtive to the distance of the viewer?

Last edited by Hummel; 01/25/11 17:37.