Skip to content

Commit 7c0792e

Browse files
committed
actually advance electric field according to path length
override seeded tests
1 parent c62895a commit 7c0792e

10 files changed

+2099
-2102
lines changed

Intern/rayx-core/src/Shader/RecordEvent.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,11 @@ inline int getRecordIndex(const int pathId, const int bounceId, const int maxEve
1010

1111
RAYX_FN_ACC
1212
inline void recordEvent(Ray* __restrict output, Ray& __restrict ray, const int recordIndex) {
13-
// TODO: this code is currently disabled to ensure all tests run with the changes that were made. in the next commit this code will be enabled and
14-
// seeded will be override, due to changes in the electric field of written rays
15-
1613
// we use a temporary here, to avoid copying the whole ray when writing the ray with the correct field value
17-
// const auto tmpField = ray.m_field;
18-
// ray.m_field = advanceElectricField(ray.m_field, energyToWaveLength(ray.m_energy), ray.m_pathLength, 1.0);
14+
const auto tmpField = ray.m_field;
15+
ray.m_field = advanceElectricField(ray.m_field, energyToWaveLength(ray.m_energy), ray.m_pathLength, 1.0);
1916
output[recordIndex] = ray;
20-
// ray.m_field = tmpField;
17+
ray.m_field = tmpField;
2118
}
2219

2320
} // namespace RAYX

Intern/rayx-core/tests/input/MatrixSource_distr_seeded.correct.csv

Lines changed: 200 additions & 200 deletions
Large diffs are not rendered by default.

Intern/rayx-core/tests/input/MatrixSource_seeded.correct.csv

Lines changed: 200 additions & 200 deletions
Large diffs are not rendered by default.

Intern/rayx-core/tests/input/PlaneMirror_refl_seeded.correct.csv

Lines changed: 400 additions & 400 deletions
Large diffs are not rendered by default.

Intern/rayx-core/tests/input/PointSource_seeded.correct.csv

Lines changed: 200 additions & 200 deletions
Large diffs are not rendered by default.

Intern/rayx-core/tests/input/slit1_seeded.correct.csv

Lines changed: 216 additions & 216 deletions
Large diffs are not rendered by default.

Intern/rayx-core/tests/input/slit2_seeded.correct.csv

Lines changed: 212 additions & 212 deletions
Large diffs are not rendered by default.

Intern/rayx-core/tests/input/slit3_seeded.correct.csv

Lines changed: 212 additions & 212 deletions
Large diffs are not rendered by default.

Intern/rayx-core/tests/input/slit4_seeded.correct.csv

Lines changed: 240 additions & 240 deletions
Large diffs are not rendered by default.

Intern/rayx-core/tests/input/slit5_seeded.correct.csv

Lines changed: 216 additions & 216 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)