Explorar o código

fix fog types

fog takes either a number or a string: https://threejs.org/docs/index.html#api/en/scenes/Fog

https://github.com/react-spring/react-three-fiber/issues/503#issuecomment-643441952
Paul Henschel %!s(int64=5) %!d(string=hai) anos
pai
achega
d3483c7fc0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/scenes/Fog.d.ts

+ 1 - 1
src/scenes/Fog.d.ts

@@ -12,7 +12,7 @@ export interface IFog {
  */
 export class Fog implements IFog {
 
-	constructor( hex: number, near?: number, far?: number );
+	constructor( color: number | string, near?: number, far?: number );
 
 	name: string;