Before moving onto lighting, I thought it might be a good time to address Transparency. Transparency is quite simple to achieve and can be used to make our Unlit shaders somewhat useful – We don’t want lighting for effects like fire, so an unlit semi-transparent shader would make a nice base for that…more on how to actually make fire later :PSince the type of Transparency is set via blending Mode, I decided to combine all the potential blending modes (that i know of) into one shader. Maya makes this easy with techniques, but Unity does not support this (that i know of) so instead i commented out the portions all but the most basic method (Alpha Clip). In order to try out the other blending modes just uncomment the relevant mode. I also included a Alpha Power attribute for adjusting the threshold of the Alpha.

unlittexturealpha.cgfx
File Size: 3 kb
File Type: cgfx

Download File


unlittexturealpha.shader
File Size: 3 kb
File Type: shader

Download File


Leave a Reply

Your email address will not be published. Required fields are marked *