// Unlit shader. Simplest possible textured shader.
// Modified to be always on top when rendering.
// - no lighting
// - no lightmap support
// - no per-material color
Shader "WorkGroup/CustomShader" {
Properties {
_MainTex ("Base (RGB)", 2D) = "white" {}
}
SubShader {
Tags { "RenderType"="Overlay" "Queue"="Overlay" }
ZTest Always
ZWrite Off
Lighting Off
LOD 100
Pass {
Tags { "LightMode"="Always" }
SetTexture[_MainTex] {
combine texture
}
}
}
}
Ly8gVW5saXQgc2hhZGVyLiBTaW1wbGVzdCBwb3NzaWJsZSB0ZXh0dXJlZCBzaGFkZXIuCi8vIE1vZGlmaWVkIHRvIGJlIGFsd2F5cyBvbiB0b3Agd2hlbiByZW5kZXJpbmcuCi8vIC0gbm8gbGlnaHRpbmcKLy8gLSBubyBsaWdodG1hcCBzdXBwb3J0Ci8vIC0gbm8gcGVyLW1hdGVyaWFsIGNvbG9yCgpTaGFkZXIgIldvcmtHcm91cC9DdXN0b21TaGFkZXIiIHsKCVByb3BlcnRpZXMgewoJCV9NYWluVGV4ICgiQmFzZSAoUkdCKSIsIDJEKSA9ICJ3aGl0ZSIge30KCX0KCQoJU3ViU2hhZGVyIHsKCQlUYWdzIHsgIlJlbmRlclR5cGUiPSJPdmVybGF5IiAiUXVldWUiPSJPdmVybGF5IiB9CgkJWlRlc3QgQWx3YXlzCgkJWldyaXRlIE9mZgoJCUxpZ2h0aW5nIE9mZgoJCUxPRCAxMDAKCQkKCQlQYXNzIHsgIAoJCQlUYWdzIHsgIkxpZ2h0TW9kZSI9IkFsd2F5cyIgfQoJCQkKCQkJU2V0VGV4dHVyZVtfTWFpblRleF0gewoJCQkJY29tYmluZSB0ZXh0dXJlCgkJCX0KCQl9Cgl9Cn0K
prog.c:7:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before string constant
Shader "WorkGroup/CustomShader" {
^
prog.c:9:27: error: invalid suffix "D" on integer constant
_MainTex ("Base (RGB)", 2D) = "white" {}
^