I’ve done some graphics programming in my own game engines outside of unity, so I understand some of the more complicated subjects on the matter of shader code and techniques. That said, I can’t get a simple stupid vertex and fragment shader to work in unity, even when stripped down to the bare bones of rendering a solid color. I cannot use surface shaders for the effect I need to achieve.
First off, here’s the warning I get (10 times in a row every time I try to compile). A google search of the warning yields nothing helpful:
When I try to view the compiled shader, I get this error (again, google doesn’t help here):
ok, i tried your shader on very latest (5.2) and here what i got:
Shader error in ‘Custom/SimpleVertFrag’: ‘frag’: input parameter ‘fIN’ missing semantics at line 18 (on d3d9)
oh well - your fIN misses semantic - bad
Shader error in ‘Custom/SimpleVertFrag’: syntax error, unexpected ‘=’ at line 26 (on metal)
that one is funny - SV_TARGET is wrong semantic name, it is SV_Target. If you change it this way all works