浏览代码

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 5 年之前
父节点
当前提交
d3483c7fc0
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;