prime31 / SpriteLightKit

Blended lighting system for Unity that works with standard Sprites
239 stars 43 forks source link

Added in configurable blend modes. #1

Closed brianasu closed 8 years ago

brianasu commented 8 years ago

Added in an option to swap the blend modes on the shader material.

prime31 commented 8 years ago

That was quick! I was thinking about adding further configurability on the C# side with a shader editor that limits the blend mode selection to only those that make sense. But alas, that is for another day.

brianasu commented 8 years ago

I saw the TODO and I just recently implemented that in my code so I thought it would help. I think the best you can do using the material property drawers is to reduce it to a subset. [Enum(One,1,SrcAlpha,5] _Blend2 ("Blend mode subset", Float) = 1