Skip to content

Commit

Permalink
Delete direct Intensities intermediatly #47
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianK13 committed Oct 25, 2024
1 parent f56a704 commit c3b0fab
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,21 +194,17 @@ export class ShadingScene {
const doDiffuseIntensities = typeof diffuseIrradianceURL === 'string';
const simulationRounds = doDiffuseIntensities ? 2 : 1;

const directIntensities = await this.rayTrace(midpointsArray, normalsArray, meshArray, undefined, (i, total) =>
progressCallback(i, total * simulationRounds),
);
let diffuseIntensities = new Float32Array();
if (doDiffuseIntensities) {
diffuseIntensities = await this.rayTrace(midpointsArray, normalsArray, meshArray, diffuseIrradianceURL, (i, total) =>
progressCallback(i + total, total * simulationRounds),
);
}

console.log('directIntensities', directIntensities);
console.log('diffuseIntensities', diffuseIntensities);

const intensities = await sun.calculatePVYield(
directIntensities,
diffuseIntensities,
diffuseIntensities,
pvCellEfficiency,
this.latitude,
Expand Down

0 comments on commit c3b0fab

Please sign in to comment.