Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import * as triangleUtils from './triangleUtils.js';
import { CalculateParams, CartesianPoint, ColorMap, SolarIrradianceData, logNaNCount } from './utils.js';

// @ts-ignore
import { rayTracingWebGL } from './rayTracingWebGL.js';
import { filterShadingBufferGeometry, filterShadingGeometry, getMinSunAngleFromIrradiance } from './geometryFilter';
import { rayTracingWebGL } from './rayTracingWebGL.js';

/**
* This class holds all information about the scene that is simulated.
Expand All @@ -36,7 +36,7 @@ export class ShadingScene {
/**
* The minimum radiance angle which gets used during raytracing.
* It is being used for filtering out shading geometry which
* physically cannot shade the simulation geometry. See {@link filterShadingGeometry}
* physically cannot shade the simulation geometry.
*/
public minSunAngle: number | undefined;
/**
Expand Down
4 changes: 2 additions & 2 deletions src/rayTracingWebGL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ function makeTransformFeedback(gl: WebGL2RenderingContext, buffer: WebGLBuffer |
return tf;
}

function makeBufferAndSetAttribute(gl: WebGL2RenderingContext, data: ArrayBuffer, loc: number): WebGLBuffer | null {
const buf = makeBuffer(gl, data);
function makeBufferAndSetAttribute(gl: WebGL2RenderingContext, data: TypedArray, loc: number): WebGLBuffer | null {
const buf = makeBuffer(gl, data as BufferSource);
// setup our attributes to tell WebGL how to pull
// the data from the buffer above to the attribute
gl.enableVertexAttribArray(loc);
Expand Down
Loading