Exemple #1
0
 protected override void Initialize()
 {
     SensorCamera.enabled = false;
     HDAdditionalCameraData.hasPersistentHistory = true;
     ReadbackPool = new GpuReadbackPool <GpuReadbackData <byte>, byte>();
     ReadbackPool.Initialize(ByteBufferSize, OnReadbackComplete);
     CurrentByteBufferSize = ByteBufferSize;
 }
Exemple #2
0
        protected override void Initialize()
        {
            SensorCamera.enabled = false;
            passId             = new ShaderTagId("SimulatorLidarPass");
            cs                 = Instantiate(computeShader);
            PointCloudMaterial = new Material(RuntimeSettings.Instance.PointCloudShader);
            HDAdditionalCameraData.hasPersistentHistory = true;
            HDAdditionalCameraData.customRender        += CustomRender;
            ReadbackPool = new GpuReadbackPool <GpuReadbackData <Vector4>, Vector4>();
            ReadbackPool.Initialize(GetTotalRayCount(), OnReadbackComplete);

            Reset();
        }