{"author_name":"VAMflax","cat":"LD #24","comments":[],"epoch":1345735080,"likes":0,"metadata":{"p_key":"54936","p_author":"VAMflax","p_authorkey":"14280","p_urlkey":"90650","p_title":"Shaders I\u2019ll be using\u2026","p_cat":"LD #24","p_event":"LD24","p_time":"1345735080","p_likes":"0","p_comments":"0","p_status":"UPD5","us_key":"14280","us_name":"VAMflax","us_username":"vamflax","event_start":"1345766400","event_key":"12","event_name":"LD24"},"text":"<p>Okay, I&#8217;m going untextured for this game. In the interests of not messing about with shaders in Unity I hereby declare and share this shader for lit vertex colours&#8230;<\/p>\n <p>&nbsp;<\/p>\n <pre>Shader \"Custom\/VertexColourLit\"\n {\n SubShader\n {\n BindChannels\n {\n Bind \"vertex\", vertex\n Bind \"normal\", normal\n Bind \"color\", color\n }\n \n Pass\n {\n ColorMaterial AmbientAndDiffuse<\/pre>\n <pre>Lighting On\n }\n }\n }<\/pre>\n <p>And this one for lit verts with a specified colour, yay&#8230;<\/p>\n <pre>Shader \"Custom\/ColourLit\"\n {\n Properties\n {\n _Color (\"Main Color\", Color) = (1,1,1,1)\n }\n \n SubShader\n {\n Pass\n {\n Material\n {\n Diffuse [_Color]\n Ambient [_Color]\n }\n \n Lighting On\n }\n }\n }<\/pre>\n <p>&nbsp;<\/p>","time":"August 23rd, 2012 10:18 am","title":"Shaders I\u2019ll be using\u2026"}