From f57d761e414774081740b489b748cbfe60c11c1f Mon Sep 17 00:00:00 2001 From: yum Date: Mon, 23 Feb 2026 16:47:27 -0800 Subject: dfg lut tweaks --- Scripts/make_dfg_lut.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Scripts') 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() -- cgit v1.2.3