Example #1
0
 private void OnEnable()
 {
     Random.InitState(RandomSeed);
     _currentSample = 0;
     Sphere.SetRandomSpheres(SpheresMax, SphereRadius, SpherePlacementRadius);
     Sphere.SetObjectToBuffer();
     PointLight.BuildPointLightList(PointLightObject);
     PointLight.SetObjectToBuffer();
     DirectionalLight.BuildDirectionalLightList(DirectionalLightObject);
     DirectionalLight.SetObjectToBuffer();
 }