Details
Description
In order to generate shaders offline the generator and the runtime needs to use same shader key. At the moment the shader key depends on the order of image and light parameters they are set in runtime, which might change when implementation changes. This makes it impossible to generate shader for this material offline and also adds unnecessary permutations if e.x. the light types are the same, but in different order.