Shaderlab Codeblock Highlight
Add this to the head
of your HTML Page, or
add Shiki.
<script src="https://esm.sh/[email protected]" defer async></script>
Edit the codeblock.
Shader "Custom/HelloWorld" {
SubShader {
Pass {
CGPROGRAM
#pragma vertex vert
#pragma fragment frag
float4 vert(float4 pos : POSITION) : SV_POSITION {
return pos;
}
fixed4 frag() : SV_Target {
return fixed4(1, 0, 0, 1);
}
ENDCG
}
}
}
Copy paste this.