@react-three/drei 9.32.7 → 9.32.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/RenderTexture.d.ts +2 -2
- package/core/Sparkles.js +1 -1
- package/package.json +1 -1
package/core/RenderTexture.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
export declare const RenderTexture: React.ForwardRefExoticComponent<THREE.Texture & {
|
|
3
|
+
export declare const RenderTexture: React.ForwardRefExoticComponent<Pick<import("@react-three/fiber").ExtendedColors<import("@react-three/fiber").Overwrite<Partial<THREE.Texture>, import("@react-three/fiber").NodeProps<THREE.Texture, typeof THREE.Texture>>> & {
|
|
4
4
|
width?: number | undefined;
|
|
5
5
|
height?: number | undefined;
|
|
6
6
|
samples?: number | undefined;
|
|
@@ -8,4 +8,4 @@ export declare const RenderTexture: React.ForwardRefExoticComponent<THREE.Textur
|
|
|
8
8
|
eventPriority?: number | undefined;
|
|
9
9
|
frames?: number | undefined;
|
|
10
10
|
children: React.ReactNode;
|
|
11
|
-
} & React.RefAttributes<unknown>>;
|
|
11
|
+
}, "attach" | "args" | "children" | "key" | "onUpdate" | "rotation" | "matrix" | "dispose" | "type" | "id" | "uuid" | "name" | "matrixAutoUpdate" | "userData" | "updateMatrix" | "toJSON" | "clone" | "copy" | "addEventListener" | "hasEventListener" | "removeEventListener" | "dispatchEvent" | "center" | "source" | "repeat" | "image" | "offset" | "needsUpdate" | "version" | "width" | "height" | "sourceFile" | "mipmaps" | "mapping" | "wrapS" | "wrapT" | "magFilter" | "minFilter" | "anisotropy" | "format" | "internalFormat" | "generateMipmaps" | "premultiplyAlpha" | "flipY" | "unpackAlignment" | "encoding" | "isRenderTargetTexture" | "needsPMREMUpdate" | "isTexture" | "transformUv" | "frames" | "renderPriority" | "samples" | "eventPriority"> & React.RefAttributes<unknown>>;
|
package/core/Sparkles.js
CHANGED
|
@@ -2,9 +2,9 @@ import _extends from '@babel/runtime/helpers/esm/extends';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import * as THREE from 'three';
|
|
4
4
|
import { extend, useThree, useFrame } from '@react-three/fiber';
|
|
5
|
+
import { shaderMaterial } from './shaderMaterial.js';
|
|
5
6
|
import fragShader from '../helpers/glsl/Sparkles.frag.glsl.js';
|
|
6
7
|
import vertShader from '../helpers/glsl/Sparkles.vert.glsl.js';
|
|
7
|
-
import { shaderMaterial } from './shaderMaterial.js';
|
|
8
8
|
|
|
9
9
|
const SparklesMaterial = shaderMaterial({
|
|
10
10
|
time: 0,
|