Surface Shader in Unity3d is not supported for use in Pass

Source: Internet
Author: User
Tags parse error

Title

For a long time, has been error:

Shader error in ' Custom_outline_effect ': Parse error:syntax error, unexpected Tok_pass, expecting tok_settexture or '} ' a T Line 69

Just put #pragma surface ... Written in the pass, even if it's wrong

1Pass {//Surface rendering mode is not available in Pass, which means that surface does not support the use of multiple pass2 Cgprogram3                     #pragmaSurface Surf Lambert4 5 sampler2d _maintex;6 7                     structInput {8 float2 Uv_maintex;9                     };Ten  One                     voidSurf (Input in, InOut surfaceoutput o) { AHalf4 C =tex2d (_maintex, In.uv_maintex); -O.albedo =C.rgb; -O.alpha =C.A; the                     } - ENDCG -}

Surface Shader in Unity3d is not supported for use in Pass

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.