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.