|
Re: Only Outlines...? I want no cartoon shading
[Re: lostclimate]
#238997
12/01/08 17:43
12/01/08 17:43
|
Joined: Aug 2008
Posts: 2,838 take me down to the paradise c...
Cowabanga
Expert
|
Expert
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
|
Use this one: float4x4 matWorldViewProj;
struct VS_IN
{
float4 pos : POSITION;
float4 nrm : NORMAL;
};
struct VS_OUT
{
float4 oPos : POSITION;
float4 oC0 : COLOR0;
float4 oC1 : COLOR1;
};
VS_OUT OutlineVS (VS_IN In, uniform float scale, uniform float3 rgb)
{
VS_OUT Out;
In.pos.xyz += In.nrm.xyz*scale;
Out.oPos = mul(In.pos,matWorldViewProj);
Out.oC0 = Out.oC1 = float4(rgb,1.0);
return Out;
}
technique test
{
pass p1
{
CullMode = CCW;
}
pass p0
{
CullMode = CW;
VertexShader = compile vs_2_0 OutlineVS(1,float3(0.0,0,0)); // thickness , rgb
}
}
Just an Outline! .
|
|
|
Re: Only Outlines...? I want no cartoon shading
[Re: mk_1]
#250141
02/06/09 06:40
02/06/09 06:40
|
Joined: Aug 2004
Posts: 1,305 New York
PrenceOfDarkness
Serious User
|
Serious User
Joined: Aug 2004
Posts: 1,305
New York
|
Ya this is something i've been asking for also for a while. I hope to see it.
"There is no problem that can't be solved with time and determination." -me prenceofdarkness for instant messages on AIM.
Looking for a model designer PLEASE, SEND ME A PRIVATE MESSAGE OR EMAIL IF YOU'RE INTERESTED.
|
|
|
|