fix TS error in Utils.ts

This commit is contained in:
Tim Hagn 2021-02-16 05:56:41 +01:00
parent d1b1c8f373
commit 44517b4eb7
No known key found for this signature in database
GPG Key ID: 8B94A03AF23DA7E5
2 changed files with 2 additions and 4 deletions

View File

@ -20,9 +20,7 @@ export const hasWindow =
* @param particleSize
* @returns {[]}
*/
export const calculateTorusProperties = (
particleSize: number,
): [BufferAttribute | InterleavedBufferAttribute, any, any] => {
export const calculateTorusProperties = (particleSize: number): any => {
let bufferGeometry: BufferGeometry = new TorusGeometry(60, 45, 160, 160);
// if normal and uv attributes are not removed,

View File

@ -28,7 +28,7 @@ const WormholeGeometry = () => {
const uniforms = React.useMemo(
() => ({
// Adapt the color of the WormholeCanvas here.
color: { value: new Color("white") },
color: { value: new Color("gray") },
pointTexture: {
value: pointTexture,
},