#Unity shader error

1 messages · Page 1 of 1 (latest)

jaunty spade
#

Anybody knows what can cause this error and what can I do about it?

warped gull
#

Go check the line that it points to

jaunty spade
jaunty spade
#

@warped gull any help please?

warped gull
kind elbowBOT
jaunty spade
#
{
    HLSLINCLUDE

        #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl"
        #include "Packages/com.unity.render-pipelines.universal/Shaders/PostProcessing/Common.hlsl"

        TEXTURE2D(_MainTex);
        SAMPLER(sampler_MainTex);

        half _Cutoff;

        half4 FragmentSimple(Varyings input) : SV_Target
        {
            return 1;
        }

        half4 FragmentAlphaTest(Varyings input) : SV_Target
        {
            half4 c = SAMPLE_TEXTURE2D(_MainTex, sampler_MainTex, input.uv);
            clip(c.a - _Cutoff);
            return 1;
        }

    ENDHLSL

    SubShader
    {
        Tags { "RenderPipeline" = "UniversalPipeline" }

        Cull Off
        ZWrite Off
        ZTest LEqual
        Lighting Off

        Pass
        {
            Name "Opaque"

            HLSLPROGRAM

            #pragma multi_compile_instancing
            #pragma vertex Vert
            #pragma fragment FragmentSimple

            ENDHLSL
        }

        Pass
        {
            Name "Transparent"

            HLSLPROGRAM

            #pragma multi_compile_instancing
            #pragma vertex Vert
            #pragma fragment FragmentAlphaTest

            ENDHLSL
        }
    }
}

This isn't my code though

warped gull
jaunty spade
#

Comments from above saying the creator yes.

warped gull
jaunty spade
#

Yes

#

Thanks let me check it out

warped gull
#

They have some walkarounds. I'd avoid using such an outdated asset though

jaunty spade
#

What do you recommend for urp ?

#

Outline for each object

warped gull
#

There might be better new solutions. I'm not up to date on the topic. I was mostly researching it around 2 years ago

jaunty spade
#

Thank you