diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 00000000..51e1e35f --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @alvarosabu \ No newline at end of file diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index dbd6520d..00000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,11 +0,0 @@ -# To get started with Dependabot version updates, you'll need to specify which -# package ecosystems to update and where the package manifests are located. -# Please see the documentation for all configuration options: -# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates - -version: 2 -updates: - - package-ecosystem: '' # See documentation for possible values - directory: '/' # Location of package manifests - schedule: - interval: 'weekly' diff --git a/.github/workflows/actions/pnpm/action.yml b/.github/workflows/actions/pnpm/action.yml deleted file mode 100644 index 3cb61fb5..00000000 --- a/.github/workflows/actions/pnpm/action.yml +++ /dev/null @@ -1,27 +0,0 @@ -# From https://github.com/remirror/template/blob/4f8c5f5629a081217672a8cce1df085510f43913/.github/actions/pnpm/action.yml -name: 'pnpm installation' -description: 'Install and audit dependencies for pnpm' -inputs: - cache: # id of input - description: 'The location of the pnpm cache' - required: true - default: '.pnpm-store' - version: # id of input - description: 'The version to use' - required: false - default: 6.10.0 - -runs: - using: 'composite' - steps: - - name: install pnpm - run: npm install pnpm@${{ inputs.version }} -g - shell: bash - - - name: setup pnpm config - run: pnpm config set store-dir ${{ inputs.cache }} - shell: bash - - - name: install dependencies - run: pnpm install --shamefully-hoist - shell: bash diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a40c8fda..c42b0fb5 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -8,7 +8,7 @@ env: jobs: lint: name: Lint - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 strategy: matrix: node-version: [20] @@ -16,9 +16,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Setup Pnpm - uses: pnpm/action-setup@v2 - with: - version: 8 + uses: pnpm/action-setup@v4 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: diff --git a/.github/workflows/pkg.pr.new.yml b/.github/workflows/pkg.pr.new.yml new file mode 100644 index 00000000..0cdcc4e8 --- /dev/null +++ b/.github/workflows/pkg.pr.new.yml @@ -0,0 +1,37 @@ +name: Publish Any Commit +on: + push: + branches: + - '**' + tags: + - '!**' + +env: + PNPM_CACHE_FOLDER: .pnpm-store + +permissions: {} + +concurrency: + group: ${{ github.workflow }}-${{ github.event.number }} + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [20] + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - run: corepack enable + - uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: "pnpm" + - name: Install dependencies + run: pnpm install + - name: Build + run: pnpm build + - run: pnpm dlx pkg-pr-new publish --pnpm \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 02597d68..c7504b7e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ +## [1.0.0](https://github.com/Tresjs/post-processing/compare/1.0.0-next.1...1.0.0) (2024-11-26) + +### Features + +* native threejs effects ([#121](https://github.com/Tresjs/post-processing/issues/121)) ([cd24a57](https://github.com/Tresjs/post-processing/commit/cd24a57cb73d52e13efb9687ade8cd2799738ffa)) +* prop types exposure ([#136](https://github.com/Tresjs/post-processing/issues/136)) ([bd6ff06](https://github.com/Tresjs/post-processing/commit/bd6ff0614f2798acc1bb6553b6b3be5910b38735)) +* sub modules for pmndrs and native components ([#123](https://github.com/Tresjs/post-processing/issues/123)) ([c8df59f](https://github.com/Tresjs/post-processing/commit/c8df59f0fdfdf0d9ba90dba6de30f458fdb7cff4)) + +### Bug Fixes + +* 67 depth of field and outline effect ([#138](https://github.com/Tresjs/post-processing/issues/138)) ([3112305](https://github.com/Tresjs/post-processing/commit/3112305e8b517f1cf5497ef942e1db2cf4b25a0b)) + ## [1.0.0-next.1](https://github.com/Tresjs/post-processing/compare/0.7.1...1.0.0-next.1) (2024-07-26) diff --git a/README.md b/README.md index 9dcad453..7d83c3cf 100644 --- a/README.md +++ b/README.md @@ -57,10 +57,6 @@ And then to run the development server on http://localhost:5173 pnpm run playground ``` -### Test - -TODO... - ### Docs To run de docs in dev mode diff --git a/docs/.eslintrc.json b/docs/.eslintrc.json deleted file mode 100644 index abc08e54..00000000 --- a/docs/.eslintrc.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@tresjs/eslint-config-vue" -} diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index e8eab85c..0f57f6eb 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -1,6 +1,6 @@ -import { defineConfig } from 'vitepress' -import { resolve } from 'pathe' import { templateCompilerOptions } from '@tresjs/core' +import { resolve } from 'pathe' +import { defineConfig } from 'vitepress' // https://vitepress.dev/reference/site-config export default defineConfig({ @@ -38,7 +38,6 @@ export default defineConfig({ // https://vitepress.dev/reference/default-theme-config nav: [ { text: 'Guide', link: '/guide/' }, - { text: 'Examples', link: 'https://playground.tresjs.org/' }, ], sidebar: [ @@ -47,15 +46,26 @@ export default defineConfig({ items: [{ text: 'Introduction', link: '/guide/' }], }, { - text: 'Effects', + text: 'Pmndrs', + items: [ + { text: 'Bloom', link: '/guide/pmndrs/bloom' }, + { text: 'Depth of Field', link: '/guide/pmndrs/depth-of-field' }, + { text: 'Glitch', link: '/guide/pmndrs/glitch' }, + { text: 'Noise', link: '/guide/pmndrs/noise' }, + { text: 'Outline', link: '/guide/pmndrs/outline' }, + { text: 'Pixelation', link: '/guide/pmndrs/pixelation' }, + { text: 'Vignette', link: '/guide/pmndrs/vignette' }, + ], + }, + { + text: 'Three', items: [ - { text: 'Bloom', link: '/guide/effects/bloom' }, - { text: 'Depth of Field', link: '/guide/effects/depth-of-field' }, - { text: 'Glitch', link: '/guide/effects/glitch' }, - { text: 'Noise', link: '/guide/effects/noise' }, - { text: 'Outline', link: '/guide/effects/outline' }, - { text: 'Pixelation', link: '/guide/effects/pixelation' }, - { text: 'Vignette', link: '/guide/effects/vignette' }, + { text: 'Glitch', link: '/guide/three/glitch' }, + { text: 'Halftone', link: '/guide/three/halftone' }, + { text: 'Output', link: '/guide/three/output' }, + { text: 'Pixelation', link: '/guide/three/pixelation' }, + { text: 'SMAA', link: '/guide/three/smaa' }, + { text: 'Unreal Bloom', link: '/guide/three/unreal-bloom' }, ], }, ], @@ -78,9 +88,10 @@ export default defineConfig({ }, resolve: { alias: { - '@tresjs/post-processing': resolve(__dirname, '../../dist/tres-postprocessing.js'), + '@tresjs/post-processing/three': resolve(__dirname, '../../src/core/three'), + '@tresjs/post-processing/pmndrs': resolve(__dirname, '../../src/core/pmndrs'), }, - dedupe: ['three'], + dedupe: ['three', '@tresjs/core'], }, }, vue: { diff --git a/docs/.vitepress/theme/components/BlenderCube.vue b/docs/.vitepress/theme/components/BlenderCube.vue index 8c02825d..5502950e 100644 --- a/docs/.vitepress/theme/components/BlenderCube.vue +++ b/docs/.vitepress/theme/components/BlenderCube.vue @@ -4,6 +4,12 @@ import { useGLTF } from '@tresjs/cientos' const { nodes } = await useGLTF('https://raw.githubusercontent.com/Tresjs/assets/main/models/gltf/blender-cube.glb', { draco: true }) const model = nodes.Cube + +model.traverse((child) => { + if (child.isMesh) { + child.castShadow = true + } +})