Lighting generalized for shader