Skip to content

Commit

Permalink
envpool: Fix prefiltered_size/samples arguments to load()
Browse files Browse the repository at this point in the history
These were not getting passed to EnvMap.from_file_path()
  • Loading branch information
Moguri committed Dec 4, 2023
1 parent 33ff040 commit bc15880
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion simplepbr/envpool.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@ def load(
self._envmaps[filepath] = envmap
return envmap

envmap = EnvMap.from_file_path(filepath, skip_prepare=True)
envmap = EnvMap.from_file_path(
filepath,
skip_prepare=True,
prefiltered_size=prefiltered_size,
prefiltered_samples=prefiltered_samples,
)
cache_file = self._get_cache_path(envmap)

if cache_file.exists():
Expand Down

0 comments on commit bc15880

Please sign in to comment.