I did have this working before i updated to the latest unity version with this script:
public List<Light> Lights;
void OnPreRender(){
foreach (Light light in Lights){
light.enabled = false;
}
}
void OnPostRender(){
foreach (Light light in Lights){
light.enabled = true;
}
}
Is there any other way to disable lights per camera when both cameras are rendering at the same time.