Search Unity

Get light atten in custom standard shader

Discussion in 'Shaders' started by jesta, Jul 17, 2015.

  1. jesta

    jesta

    Joined:
    Jun 19, 2010
    Posts:
    294
    Is there a way to get the atten value of point lights in a custom standard lighting function? The only way I can think of is replacing the .cginc files to store atten in the UnityLight struct, but this seems way too much work for such a simple case.