Exemple #1
0
    void OnPreRender()
    {
        LightsManager LM = GetComponent <LightsManager>();

        deffered_material.SetVectorArray("_LightsPositions", LM.lightsPositions());
        deffered_material.SetVectorArray("_LightsColors", LM.lightsColors());
    }