@react-three/drei 9.56.16 → 9.56.18
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/README.md +24 -2
- package/core/PointMaterial.cjs.js +1 -1
- package/core/PointMaterial.js +2 -0
- package/core/RenderTexture.cjs.js +1 -1
- package/core/RenderTexture.d.ts +4 -1
- package/core/RenderTexture.js +7 -1
- package/core/Sparkles.cjs.js +1 -1
- package/core/Sparkles.d.ts +1 -1
- package/core/Sparkles.js +41 -10
- package/index.cjs.js +1 -1
- package/package.json +1 -1
- package/helpers/glsl/Sparkles.frag.glsl.js +0 -3
- package/helpers/glsl/Sparkles.vert.glsl.js +0 -3
package/package.json
CHANGED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
var fragShader = "#define GLSLIFY 1\nvarying vec3 vColor;varying float vOpacity;void main(){float distanceToCenter=distance(gl_PointCoord,vec2(0.5));float strength=0.05/distanceToCenter-0.1;gl_FragColor=vec4(vColor,strength*vOpacity);}"; // eslint-disable-line
|
|
2
|
-
|
|
3
|
-
export { fragShader as default };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
var vertShader = "#define GLSLIFY 1\nuniform float pixelRatio;uniform float time;attribute float size;attribute float speed;attribute float opacity;attribute vec3 noise;attribute vec3 color;varying vec3 vColor;varying float vOpacity;void main(){vec4 modelPosition=modelMatrix*vec4(position,1.0);modelPosition.y+=sin(time*speed+modelPosition.x*noise.x*100.0)*0.2;modelPosition.z+=cos(time*speed+modelPosition.x*noise.y*100.0)*0.2;modelPosition.x+=cos(time*speed+modelPosition.x*noise.z*100.0)*0.2;vec4 viewPosition=viewMatrix*modelPosition;vec4 projectionPostion=projectionMatrix*viewPosition;gl_Position=projectionPostion;gl_PointSize=size*25.*pixelRatio;gl_PointSize*=(1.0/-viewPosition.z);vColor=color;vOpacity=opacity;}"; // eslint-disable-line
|
|
2
|
-
|
|
3
|
-
export { vertShader as default };
|