From ca313bb2a5fc62b99b6f04ac04c3c3c48c63f955 Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Wed, 23 Oct 2024 22:56:20 -0400 Subject: [PATCH] DecalGeometry: Support geometries without normals. --- .../three/examples/jsm/geometries/DecalGeometry.d.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/types/three/examples/jsm/geometries/DecalGeometry.d.ts b/types/three/examples/jsm/geometries/DecalGeometry.d.ts index 8b9ca786c..b85a2b102 100644 --- a/types/three/examples/jsm/geometries/DecalGeometry.d.ts +++ b/types/three/examples/jsm/geometries/DecalGeometry.d.ts @@ -1,10 +1,16 @@ import { BufferGeometry, Euler, Mesh, Vector3 } from "three"; -export class DecalGeometry extends BufferGeometry { +declare class DecalGeometry extends BufferGeometry { constructor(mesh: Mesh, position: Vector3, orientation: Euler, size: Vector3); } -export class DecalVertex { - constructor(position: Vector3, normal: Vector3); +declare class DecalVertex { + position: Vector3; + normal: Vector3 | null; + + constructor(position: Vector3, normal?: Vector3 | null); + clone(): this; } + +export { DecalGeometry, DecalVertex };