Skip to content

Commit ab4b2d1

Browse files
committed
Ignore physical sky rotation
1 parent 1762fee commit ab4b2d1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

internal/SceneCPU.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -892,8 +892,9 @@ void Ray::Cpu::Scene::Finalize(const std::function<void(int, int, ParallelForFun
892892

893893
if (env_.env_map != InvalidTextureHandle._index &&
894894
(env_.env_map == PhysicalSkyTexture._index || env_.env_map == physical_sky_texture_._index)) {
895-
PrepareSkyEnvMap_nolock(parallel_for);
895+
env_.env_map_rotation = 0.0f;
896896
env_.sky_map_spread_angle = 2 * PI / float(env_.envmap_resolution);
897+
PrepareSkyEnvMap_nolock(parallel_for);
897898
}
898899

899900
if (env_.importance_sample && env_.env_col[0] > 0.0f && env_.env_col[1] > 0.0f && env_.env_col[2] > 0.0f) {

internal/SceneGPU.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1488,6 +1488,7 @@ inline void Ray::NS::Scene::Finalize(const std::function<void(int, int, Parallel
14881488

14891489
if (env_.env_map != InvalidTextureHandle._index &&
14901490
(env_.env_map == PhysicalSkyTexture._index || env_.env_map == physical_sky_texture_._index)) {
1491+
env_.env_map_rotation = 0.0f;
14911492
env_.sky_map_spread_angle = 2 * PI / float(env_.envmap_resolution);
14921493
if (!atmosphere_params_buf_) {
14931494
atmosphere_params_buf_ = Buffer{"Atmosphere Params", ctx_, eBufType::Uniform, sizeof(atmosphere_params_t)};

0 commit comments

Comments
 (0)