Shader generation looping wrong answers (it doesn't check docs?)

Hi All,

So still experimenting with Muse since I got my account yesterday, I noticed it particularly struggles to generate shaders for URP.
I gave this prompt: can you show me the official example for shader in the urp documentation?
And it generated this:

Shader "Custom/URPSimpleUnlit" {
    Properties {
        _MainTex("Texture", 2D) = "white" {}
    }

    SubShader {
        Tags {"Queue"="Transparent" "RenderType"="Transparent"}

        LOD 100

        CGPROGRAM
        #pragma surface surf Lambert
        #pragma target 3.0

        sampler2D _MainTex;

        struct Input {
            float2 uv_MainTex;
        };

        void surf (Input IN, inout SurfaceOutput o) {
            o.Albedo = tex2D(_MainTex, IN.uv_MainTex).rgb;
        }
        ENDCG
    }
    FallBack "Diffuse"
}

It’s been back and forth between this and an in correct version with HLSLPROGRAM. That rings a bell when about when I tried to do the same thing with chatgtp 3.5 a while ago, it wouldn’t follow the context and keep doing the same mistakes over and over.
Not sure how this bot has been trained but it could be useful if actually it could search in the documentation automatically for you.
I went ahead with the example on this page and it works fine: URP unlit basic shader | Universal RP | 14.0.8 (unity3d.com)

But the bot never suggest a correct example like this.

Thank you @hangarter! Seems like something has gone wrong here, Muse Chat should’ve of course found the right references here in our docs. We have forwarded this to our LLM team and will look into it :smiley: If you find similar issues going forward, don’t hesitate to file a ticket :raised_hands:

1 Like

Hi @hangarter, if you are still using Muse, would you mind trying this again and see if the problem is still persistent? We have ingested URP now and hope this will have resolved the issue.