Sfoglia il codice sorgente

Update kernelRadius type

Fix Inconsistent type on `kernelRadius` to a number. 
The plain version of the SSAOPass.js takes a number type
but it's typed as a `boolean` here.
iamcastelli 5 anni fa
parent
commit
69d8bc9741
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      examples/jsm/postprocessing/SSAOPass.d.ts

+ 1 - 1
examples/jsm/postprocessing/SSAOPass.d.ts

@@ -21,7 +21,7 @@ export class SSAOPass extends Pass {
 	width: number;
 	height: boolean;
 	clear: boolean;
-	kernelRadius: boolean;
+	kernelRadius: number;
 	kernelSize: boolean;
 	kernel: Vector3[];
 	noiseTexture: DataTexture;