diff options
Diffstat (limited to 'Scripts')
| -rwxr-xr-x | Scripts/make_dfg_lut.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Scripts/make_dfg_lut.py b/Scripts/make_dfg_lut.py index b4faf0f..298452f 100755 --- a/Scripts/make_dfg_lut.py +++ b/Scripts/make_dfg_lut.py @@ -1,5 +1,8 @@ #!/usr/bin/env python3 +# To run with uv: +# uv run -w OpenEXR -w numba ./make_dfg_lut.py + import argparse import math import numpy as np @@ -226,7 +229,7 @@ def generate_exr(resolution, output_filename, brdf_type, num_samples, num_worker try: # Vertically flip to match UV coordinates (0,0 at bottom-left). pixel_data = np.flipud(pixel_data) - + exr_file = OpenEXR.OutputFile(output_filename, header) r_data = pixel_data[:, :, 0].ravel().tobytes() g_data = pixel_data[:, :, 1].ravel().tobytes() |
