예제 #1
0
        public void PrepareLocalStorage(VoxelStorageContext context, IVoxelStorage storage)
        {
            StorageMethod.PrepareLocalStorage(context, storage, 4, 1);

            Graphics.PixelFormat format = Graphics.PixelFormat.R16G16B16A16_Float;
            switch (StorageFormat)
            {
            case StorageFormats.RGBA8:
                format = Graphics.PixelFormat.R8G8B8A8_UNorm;
                break;

            case StorageFormats.R10G10B10A2:
                format = Graphics.PixelFormat.R10G10B10A2_UNorm;
                break;

            case StorageFormats.RGBA16F:
                format = Graphics.PixelFormat.R16G16B16A16_Float;
                break;
            }
            storage.UpdateTexture(context, ref IsotropicTex, format, 1);
        }
 public override void PrepareOutputStorage(VoxelStorageContext context, IVoxelStorage storage)
 {
     storage.UpdateTexture(context, ref CoverageTex, Graphics.PixelFormat.R11G11B10_Float, 1);
 }
 public void PrepareLocalStorage(VoxelStorageContext context, IVoxelStorage storage)
 {
     StorageMethod.PrepareLocalStorage(context, storage, 4, 6);
     storage.UpdateTexture(context, ref IsotropicTex, Graphics.PixelFormat.R16G16B16A16_Float, 6);
 }
 virtual public void PrepareOutputStorage(VoxelStorageContext context, IVoxelStorage storage)
 {
     storage.UpdateTexture(context, ref storageTex, StorageFormatToPixelFormat(), LayoutCount);
 }
예제 #5
0
 public override void PrepareOutputStorage(VoxelStorageContext context, IVoxelStorage storage)
 {
     storage.UpdateTexture(context, ref SolidityTex, Graphics.PixelFormat.R8_UNorm, 1);
 }