Skip to content

Commit

Permalink
Rename to three-vfx (#24)
Browse files Browse the repository at this point in the history
* Rename library

* Rename monorepo

* More renamy bits

* Changeset

* Fix type export name
  • Loading branch information
hmans committed Jun 12, 2022
1 parent 0f8fdb4 commit 7b2756b
Show file tree
Hide file tree
Showing 16 changed files with 23 additions and 18 deletions.
5 changes: 5 additions & 0 deletions .changeset/big-lizards-train.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"three-vfx": minor
---

**New Package Name:** The package has been renamed from `vfx` to `three-vfx`.
2 changes: 1 addition & 1 deletion .changeset/blue-foxes-exercise.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
"vfx": patch
"three-vfx": patch
---

**New:** `<ParticlesMaterial>` now allows you to use an existing material as its base material.
2 changes: 1 addition & 1 deletion .changeset/flat-moons-float.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
"vfx": patch
"three-vfx": patch
---

**New:** `<VisualEffect>`, a root component for all visual effects. Currently only an abstraction over <group>.
2 changes: 1 addition & 1 deletion .changeset/lazy-chicken-vanish.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
"vfx": patch
"three-vfx": patch
---

**New:** `<Lifetime seconds={...}>` will give its children the specified lifetime and then unmount them.
2 changes: 1 addition & 1 deletion .changeset/nice-rice-serve.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
"vfx": patch
"three-vfx": patch
---

**New:** `<Repeat times={...} interval={...}>` will re-render its children `times` times with an interval of `interval`.
2 changes: 1 addition & 1 deletion .changeset/selfish-toes-rescue.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
"vfx": patch
"three-vfx": patch
---

**New:** `<Delay seconds={...}>` will only render its children after the specified time has passed.
2 changes: 1 addition & 1 deletion apps/examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"react": "^18.1.0",
"react-dom": "^18.1.0",
"three": "^0.141.0",
"vfx": "^0.0.13",
"three-vfx": "^0.0.13",
"wouter": "^2.8.0-alpha.2"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion apps/examples/src/Game.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { button, useControls } from "leva"
import { Perf } from "r3f-perf"
import { FC, useState } from "react"
import { LinearEncoding } from "three"
import { Repeat } from "vfx"
import { Repeat } from "three-vfx"
import { Route, useRoute } from "wouter"
import examples, { ExampleDefinition } from "./examples"
import { RenderPipeline } from "./RenderPipeline"
Expand Down
2 changes: 1 addition & 1 deletion apps/examples/src/examples/Explosion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
Repeat,
VisualEffect,
VisualEffectProps
} from "vfx"
} from "three-vfx"

const gravity = new Vector3(0, -20, 0)
const direction = new Vector3()
Expand Down
2 changes: 1 addition & 1 deletion apps/examples/src/examples/Fog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
Repeat,
SpawnSetup,
VisualEffect
} from "vfx"
} from "three-vfx"

export const Fog = () => {
const texture = useMemo(
Expand Down
2 changes: 1 addition & 1 deletion apps/examples/src/examples/GLTFParticles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
ParticlesMaterial,
Repeat,
VisualEffect
} from "vfx"
} from "three-vfx"

const offset = new Vector3(0, 10, 0)

Expand Down
2 changes: 1 addition & 1 deletion apps/examples/src/examples/Simple.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
ParticlesMaterial,
Repeat,
VisualEffect
} from "vfx"
} from "three-vfx"

export const Simple = () => (
<VisualEffect>
Expand Down
2 changes: 1 addition & 1 deletion apps/examples/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import react from "@vitejs/plugin-react"
export default defineConfig({
plugins: [react()],
optimizeDeps: {
exclude: ["vfx", "randomish"],
exclude: ["three-vfx", "randomish"],
include: ["react/jsx-runtime"]
}
})
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "vfx-monorepo",
"name": "three-vfx-monorepo",
"private": true,
"version": "1.0.0",
"main": "index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/vfx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
## Introduction 👋

`vfx` is a visual effects library for [react-three-fiber](https://github.com/pmndrs/react-three-fiber). It aims to be highly performant (with effects almost entirely simulated on the GPU) and easy to extend.
`three-vfx` is a visual effects library for [Three.js](https://threejs.org/) and [react-three-fiber](https://github.com/pmndrs/react-three-fiber). It aims to be highly performant (with effects almost entirely simulated on the GPU) and easy to extend.

## Status ⚠️

Expand Down
8 changes: 4 additions & 4 deletions packages/vfx/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "vfx",
"name": "three-vfx",
"private": false,
"author": {
"name": "Hendrik Mans",
Expand All @@ -8,9 +8,9 @@
},
"description": "Visual FX!",
"version": "0.0.13",
"main": "dist/vfx.cjs.js",
"module": "dist/vfx.esm.js",
"types": "dist/vfx.cjs.d.ts",
"main": "dist/three-vfx.cjs.js",
"module": "dist/three-vfx.esm.js",
"types": "dist/three-vfx.cjs.d.ts",
"files": [
"dist/**",
"LICENSE",
Expand Down

1 comment on commit 7b2756b

@vercel
Copy link

@vercel vercel bot commented on 7b2756b Jun 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

vfx – ./

vfx-examples.vercel.app
vfx-git-main-hmans.vercel.app
vfx-hmans.vercel.app

Please sign in to comment.