diff options
| author | yum <yum.food.vr@gmail.com> | 2026-02-23 16:47:27 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2026-02-23 16:47:27 -0800 |
| commit | f57d761e414774081740b489b748cbfe60c11c1f (patch) | |
| tree | 2ea15a2b339e6d685283c11406d3ff513840034d | |
| parent | c09509e1a5a6be7d1cd71d0d5fb5763fb856d92b (diff) | |
dfg lut tweaks
| -rw-r--r--[-rwxr-xr-x] | LUTS/dfg_standard.exr | bin | 132014 -> 132134 bytes | |||
| -rwxr-xr-x | Scripts/make_dfg_lut.py | 5 |
2 files changed, 4 insertions, 1 deletions
diff --git a/LUTS/dfg_standard.exr b/LUTS/dfg_standard.exr Binary files differindex 016c35d..7a3e0cd 100755..100644 --- a/LUTS/dfg_standard.exr +++ b/LUTS/dfg_standard.exr 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() |
