From e0beefb49412bcb8fffee5edf8cdfd670de11e69 Mon Sep 17 00:00:00 2001 From: Mehmet Oguz Derin Date: Thu, 28 Mar 2024 04:45:38 +0900 Subject: [PATCH] Reduce to 64 samples and fix script path --- public/assets/img/volume/README.adoc | 2 +- sample/volumeRenderingTexture3D/meta.ts | 2 +- sample/volumeRenderingTexture3D/volume.wgsl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/assets/img/volume/README.adoc b/public/assets/img/volume/README.adoc index 603bfffd..99d8a2be 100644 --- a/public/assets/img/volume/README.adoc +++ b/public/assets/img/volume/README.adoc @@ -19,7 +19,7 @@ In the "Volume Rendering - Texture 3D" sample, the implementation uses simulated 11. Copy the downloaded *.rawb data to this directory. 12. Activate a Python environment with at least Python 3.12, Numpy, Scipy, and Pillow. 13. Start a terminal in this directory. -14. Run t1_icbm_normal_1mm_pn0_rf0_180x216x180_uint8_1x1.py script. +14. Run t1_icbm_normal_1mm_pn0_rf0.py script. === References diff --git a/sample/volumeRenderingTexture3D/meta.ts b/sample/volumeRenderingTexture3D/meta.ts index 66d63183..0320833c 100644 --- a/sample/volumeRenderingTexture3D/meta.ts +++ b/sample/volumeRenderingTexture3D/meta.ts @@ -10,7 +10,7 @@ Database, with decompression streams, to save disk space and network traffic. The original raw data is generated using [the BrainWeb Simulated Brain Database](https://brainweb.bic.mni.mcgill.ca/brainweb/) before processing in -[a custom Python script](https://github.com/webgpu/webgpu-samples/tree/main/public/assets/img/volume/t1_icbm_normal_1mm_pn0_rf0_180x216x180_uint8_1x1.py).`, +[a custom Python script](https://github.com/webgpu/webgpu-samples/tree/main/public/assets/img/volume/t1_icbm_normal_1mm_pn0_rf0.py).`, filename: __DIRNAME__, sources: [{ path: 'main.ts' }, { path: 'volume.wgsl' }], }; diff --git a/sample/volumeRenderingTexture3D/volume.wgsl b/sample/volumeRenderingTexture3D/volume.wgsl index 20538e89..81a358e8 100644 --- a/sample/volumeRenderingTexture3D/volume.wgsl +++ b/sample/volumeRenderingTexture3D/volume.wgsl @@ -12,7 +12,7 @@ struct VertexOutput { @location(1) step : vec3f, } -const NumSteps = 128u; +const NumSteps = 64u; @vertex fn vertex_main(