UnityShader报错:Unlit/bloomShader shader is not supported on this GPU

When realizing the bloom effect, you need to use the horizontal and vertical blur shaders (two PASS) written in the Gaussian blur shader.

ZTest Always Cull Off ZWrite Off
        Pass
        {
    
    
            CGPROGRAM
            #pragma vertex vertExtractBright
            #pragma fragment fragExtractBright
            ENDCG
        }

		UsePass "Unlit/11-gaussian/GUSSIAN_BLUR_VERTICAL"
		UsePass "Unlit/11-gaussian/GUSSIAN_BLUR_HORIZONTAL"

		Pass
		{
    
    
			CGPROGRAM
			#pragma vertex vertExtractBright
			#pragma fragment fragExtractBright
			ENDCG
		}

When using the vertices and fragment shaders written in other shaders, unity has the following error.
Unlit/bloomShader shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
Solution:
Remember to close the Fallback that references the shader (flood shader)

Fallback Off

Guess you like

Origin blog.csdn.net/misaka12807/article/details/115695663