Exemple #1
0
 public void PreCullCamera(Camera camera)
 {
     if (camera != null)
     {
         SkyPlaneProfile.UpdateSkyPlane(camera, MeshRenderer.sharedMaterial, gameObject);
     }
 }
 private void CameraPreCull(Camera camera)
 {
     if (!WeatherMakerScript.ShouldIgnoreCamera(this, camera))
     {
         if (SkyPlaneProfile != null && camera != null && isActiveAndEnabled && WeatherMakerLightManagerScript.Instance != null)
         {
             SkyPlaneProfile.UpdateSkyPlane(camera, MeshRenderer.sharedMaterial, gameObject, WeatherMakerLightManagerScript.Instance.SunOrthographic);
         }
     }
 }