Exemple #1
0
 /// <summary>
 /// Creates texture buffers
 /// </summary>
 /// <param name="resolution">The desired resolution</param>
 private void CreateBuffers(Vector3Int resolution)
 {
     _buffers = new Buffers(resolution);
     _hasInitializedBuffers = true;
     _computeAccumulationComputeShader.SetTexture(0, "fogVolumeTexture", _buffers.FogVolumeTexture);
     _computeAccumulationComputeShader.SetTexture(1, "fogVolumeTexture", _buffers.FogVolumeTexture);
 }