aboutsummaryrefslogtreecommitdiff
path: root/src/Material.ts
diff options
context:
space:
mode:
authorJames Barnett <noreply@jamesbarnett.xyz>2025-07-26 11:17:10 +0100
committerJames Barnett <noreply@jamesbarnett.xyz>2025-07-26 11:17:10 +0100
commit10bfc58085c6ab7e62077a1a9b6a6d922fffb025 (patch)
tree3e1d3ff39891c2c2408235c209566f4c51915859 /src/Material.ts
parentebc500c522e7233fbc6037bce0569edf3a0b5136 (diff)
downloadjs-raytracer-10bfc58085c6ab7e62077a1a9b6a6d922fffb025.tar.xz
js-raytracer-10bfc58085c6ab7e62077a1a9b6a6d922fffb025.zip
Rework multithreaded rendering
Render worker tasks are now split into chunks rather than row blocks for better thread utilisation
Diffstat (limited to 'src/Material.ts')
-rw-r--r--src/Material.ts27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/Material.ts b/src/Material.ts
deleted file mode 100644
index f0af5e2..0000000
--- a/src/Material.ts
+++ /dev/null
@@ -1,27 +0,0 @@
-import {Type} from 'class-transformer';
-import {Colour} from './Colour';
-
-export class Material {
- @Type(() => Colour)
- readonly diffuseColour: Colour;
- @Type(() => Albedo)
- readonly albedo: Albedo;
- constructor(
- diffuseColour: Colour,
- albedo: Albedo,
- readonly specularExponent: number,
- readonly refractiveIndex: number
- ) {
- this.diffuseColour = diffuseColour;
- this.albedo = albedo;
- }
-}
-
-export class Albedo {
- constructor(
- readonly diffuseAlbedo: number,
- readonly specularAlbedo: number,
- readonly reflectionAlbedo: number,
- readonly refractionAlbedo: number
- ) {}
-}