fork download
  1. // Unlit shader. Simplest possible textured shader.
  2. // Modified to be always on top when rendering.
  3. // - no lighting
  4. // - no lightmap support
  5. // - no per-material color
  6.  
  7. Shader "WorkGroup/CustomShader" {
  8. Properties {
  9. _MainTex ("Base (RGB)", 2D) = "white" {}
  10. }
  11.  
  12. SubShader {
  13. Tags { "RenderType"="Overlay" "Queue"="Overlay" }
  14. ZTest Always
  15. ZWrite Off
  16. Lighting Off
  17. LOD 100
  18.  
  19. Pass {
  20. Tags { "LightMode"="Always" }
  21.  
  22. SetTexture[_MainTex] {
  23. combine texture
  24. }
  25. }
  26. }
  27. }
  28.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
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" {}
                           ^
stdout
Standard output is empty