I`m a new comer in unity field. Now I have a problem about the unity shader systax. I have used HLSL or Cg to write shader, But I’m eager to know how to use the cullmode command to ctrl render in unity,like CW or CCW for example:
pass GlowPass <
string Script= "RenderColorTarget0=;"
"RenderDepthStencilTarget=;"
"Draw=Geometry;";
> {
VertexShader = compile vs_3_0 gloBalloon_VS(gInflate,gWorldITXf,gWorldXf,
gViewIXf,gWvpXf);
ZEnable = true;
ZWriteEnable = true;
AlphaBlendEnable = true;
SrcBlend = SrcAlpha;
DestBlend = InvSrcAlpha;
CullMode = CW;
PixelShader = compile ps_3_0 gloBalloon_PS(gGlowColor,gGlowExpon);
}
We define this program as the CullMode=CW mode. but in unity ,how to write and how to define the cullmode? Thanks very much for any help:>