(Case 1107819) Shader Unsupported: 'Legacy Shaders/Diffuse' - Pass 'Meta' has no vertex shader

Here is the bug-report for one of these issues. I’m still trying to get a reproduce for the other one.
https://discussions.unity.com/t/716738/18

Unity outputs the following warning in a Windows 64bit Standalone Player:

WARNING: Shader Unsupported: 'Legacy Shaders/Diffuse' - Pass 'Meta' has no vertex shader

Reproduce

  • Open user attached project
  • Build & Run a Windows 64bit Standalone Player
  • Open player log file “C:\Users%UserName%\AppData\LocalLow\DefaultCompany\Wolf\output_log.txt”

Observe it contains a “Shader Unsupported” warning

Actual
“Shader Unsupported” warning

Expected
Unity built-in shaders should not contain any warnings and errors.

2 Likes

Hey

Thanks for the bug report, it is being processed by our QA team and you will get news soon!

Florent

1 Like

I’m also getting this from a few shaders I’ve got in my project, once I’ve upgraded from 2018.1.0f2 → 2018.3.0b12

This one produces the same error “Pass ‘Meta’ has no vertex shader” in the log file, but it all seems to work fine.

Shader "Custom/AtlasShaderBG" {
    Properties {
        _MainTex("Texture", 2D) = "white" {}
        _EmisColor("Emission Color", Color) = (1,1,1,1)
    }

    SubShader {
        Tags {
            "Queue" = "Transparent"
            "IgnoreProjector" = "True"
            "RenderType" = "Transparent"
            "PreviewType" = "Plane"
            "CanUseSpriteAtlas" = "True"
        }

        Cull Back
        Lighting Off
        ZWrite Off

        CGPROGRAM
        #pragma surface surf Lambert nofog alpha

        sampler2D _MainTex;
        float4 _EmisColor;

        struct Input {
            float2 uv_MainTex;
        };

        void surf(Input i, inout SurfaceOutput o) {

            fixed4 cMainTex = tex2D(_MainTex, i.uv_MainTex);

            // Set pixel
            o.Albedo = cMainTex.rgb;
            o.Alpha = cMainTex.a;
            o.Emission = (cMainTex.rgb * _EmisColor * cMainTex.a);

        }

        ENDCG
    }

    FallBack "Diffuse"
}
1 Like