From 10bfc58085c6ab7e62077a1a9b6a6d922fffb025 Mon Sep 17 00:00:00 2001 From: James Barnett Date: Sat, 26 Jul 2025 11:17:10 +0100 Subject: Rework multithreaded rendering Render worker tasks are now split into chunks rather than row blocks for better thread utilisation --- src/models/Light.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/models/Light.ts (limited to 'src/models/Light.ts') diff --git a/src/models/Light.ts b/src/models/Light.ts new file mode 100644 index 0000000..58e4185 --- /dev/null +++ b/src/models/Light.ts @@ -0,0 +1,10 @@ +import {Type} from 'class-transformer'; +import {Vector} from './Vector'; + +export class Light { + @Type(() => Vector) + readonly position: Vector; + constructor(position: Vector, readonly intensity: number) { + this.position = position; + } +} -- cgit v1.2.3