Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Pull request overview
This PR updates Radiance’s documentation site (new home/hero content, metadata, and theme tweaks), adds a new benchmark/ workspace package for bundle-size measurement (and wires the results into docs), introduces vitepress-plugin-llms for generating llms.txt, and includes several API/internal updates in the lib/ package (pointer events args/types, quad pass shader source extraction, and GLSL conversion tweaks).
Changes:
- Add a
benchmark/workspace with build/measure scripts and generated results, and expose bundle-size data in docs via a newBundleSizeGraphcomponent. - Update docs home page, examples metadata, styling, and add
vitepress-plugin-llmsconfiguration to generatellms.txt. - Update library helpers and passes:
onPointerEventsnow targets generic HTMLElements and returnsboundingRect/center; extract quad vertex shader to a GLSL file; tweak shader conversion behavior.
Reviewed changes
Copilot reviewed 74 out of 75 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| pnpm-workspace.yaml | Adds benchmark workspace and pnpm build-allowlist config. |
| pnpm-lock.yaml | Locks new dependencies (benchmark + docs llms/plugin additions). |
| lib/src/passes/quadVertexShader.glsl | New extracted quad vertex shader source. |
| lib/src/passes/quadRenderPass.ts | Uses extracted GLSL source and simplifies varying rename logic. |
| lib/src/helpers/watchBoundingRect.ts | Renames exported rect/center types and refines key iteration typing. |
| lib/src/helpers/onPointerEvents.ts | Changes API to HTMLElement + boundingRect/center handler args. |
| lib/src/core/shader.ts | Adjusts GLSL 300 conversion strategy (frag output + precision insertion). |
| lib/playground/src/shaders/hero.ts | Adds new hero fragment shader for playground example. |
| lib/playground/src/pages/pointer/pointer.astro | Updates pointer handler args to boundingRect/center. |
| lib/playground/src/pages/pointer/blob.astro | Updates pointer handler args to boundingRect/center and formatting. |
| lib/playground/src/pages/core/hero.astro | New hero page using updated pointer handler args. |
| docs/snippets/render-count/index.html | Tweaks render-count overlay styling. |
| docs/snippets/canvas-square/styles.css | Updates snippet styling for light/dark schemes. |
| docs/snippets/canvas-full/styles.css | Updates snippet styling and removes forced black background. |
| docs/package.json | Adds vitepress-plugin-llms. |
| docs/index.md | Reworks home page content and example sections. |
| docs/examples/textures/video/index.md | Adds frontmatter description + spacing adjustments. |
| docs/examples/textures/image/index.md | Adds frontmatter description + spacing adjustments. |
| docs/examples/textures/data/index.md | Adds frontmatter description + spacing adjustments. |
| docs/examples/textures/canvas2d/index.md | Adds frontmatter description + spacing adjustments. |
| docs/examples/post-processing/single-pass/index.md | Adds frontmatter description + spacing adjustments. |
| docs/examples/post-processing/multi-pass/index.md | Adds frontmatter description + spacing adjustments. |
| docs/examples/post-processing/builtin-trails/index.md | Adds frontmatter description + spacing adjustments. |
| docs/examples/post-processing/builtin-bloom/index.md | Adds frontmatter description + spacing adjustments. |
| docs/examples/interactions/pointer/index.md | Adds frontmatter description + spacing adjustments. |
| docs/examples/gpgpu/particles/index.md | Adds frontmatter description + spacing adjustments. |
| docs/examples/gpgpu/game-of-life/index.md | Adds frontmatter description + spacing adjustments. |
| docs/examples/gpgpu/boids/index.md | Adds frontmatter description + spacing adjustments. |
| docs/examples/gpgpu/maths/utils.ts | New helpers for the maths benchmark example. |
| docs/examples/gpgpu/maths/styles.css | New styles for the maths benchmark example. |
| docs/examples/gpgpu/maths/index.ts | New maths benchmark example runner (GPU vs CPU). |
| docs/examples/gpgpu/maths/index.md | New maths example page. |
| docs/examples/gpgpu/maths/index.html | New maths example HTML scaffold. |
| docs/examples/gpgpu/maths/gpu.ts | New GPU (transform feedback) matrix-square example. |
| docs/examples/gpgpu/maths/cpu.ts | New CPU matrix-square baseline implementation. |
| docs/examples/basics/uniforms/uniforms.frag | Extracts uniforms shader to a standalone file. |
| docs/examples/basics/uniforms/index.ts | Imports the extracted shader (instead of inline string). |
| docs/examples/basics/uniforms/index.md | Adds frontmatter description and includes extracted shader. |
| docs/examples/basics/resize/index.md | Adds frontmatter description + spacing adjustments. |
| docs/examples/basics/play-pause/index.md | Adds frontmatter description + spacing adjustments. |
| docs/examples/basics/particles/index.md | Adds frontmatter description + spacing adjustments. |
| docs/examples/basics/indices/index.md | Adds frontmatter description + spacing adjustments. |
| docs/examples/basics/full-screen/index.md | Adds frontmatter description + spacing adjustments. |
| docs/examples/basics/drawing-modes/index.md | Adds frontmatter description + spacing adjustments. |
| docs/components/Hero/HomeHeroShader.vue | New home hero shader component (ping-pong + trails + halo). |
| docs/components/Hero/home-hero.vert | New home hero render vertex shader. |
| docs/components/Hero/home-hero.frag | New home hero render fragment shader. |
| docs/components/Hero/home-hero-sim.frag | New home hero simulation fragment shader. |
| docs/components/Hero/home-hero-halo.frag | New post halo effect fragment shader. |
| docs/components/BundleSizeGraph.vue | New component to display bundle-size data in docs. |
| docs/.vitepress/theme/styles.scss | Theme/layout CSS tweaks (wrappers, dark home background, etc.). |
| docs/.vitepress/theme/index.ts | Injects home hero image slot + registers BundleSizeGraph. |
| docs/.vitepress/data/bundle-size.json | Adds generated bundle-size dataset for the graph. |
| docs/.vitepress/config.ts | Adds llms.txt generation plugin config + forces dark appearance + excludes AGENTS. |
| benchmark/vite.config.ts | New Vite config for multi-page benchmark build. |
| benchmark/tsconfig.json | New TS config for benchmark package. |
| benchmark/src/shared/benchmark.css | Shared benchmark styling. |
| benchmark/src/apps/vanilla/main.ts | Vanilla WebGL benchmark entry. |
| benchmark/src/apps/twgl/main.ts | TWGL benchmark entry. |
| benchmark/src/apps/three/main.ts | Three.js benchmark entry. |
| benchmark/src/apps/radiance/main.ts | Radiance benchmark entry. |
| benchmark/src/apps/ogl/main.ts | OGL benchmark entry. |
| benchmark/scripts/build-and-measure.mts | Build + measure script that writes results + docs data. |
| benchmark/results/results.md | Generated benchmark report (markdown). |
| benchmark/results/results.json | Generated benchmark report (JSON). |
| benchmark/public/shaders/fullscreen.vert | Benchmark shader (vertex). |
| benchmark/public/shaders/fullscreen.frag | Benchmark shader (fragment). |
| benchmark/package.json | New benchmark workspace package manifest. |
| benchmark/index.html | Benchmark landing page linking to each app. |
| benchmark/apps/vanilla.html | Benchmark app HTML entrypoint. |
| benchmark/apps/twgl.html | Benchmark app HTML entrypoint. |
| benchmark/apps/three.html | Benchmark app HTML entrypoint. |
| benchmark/apps/radiance.html | Benchmark app HTML entrypoint. |
| benchmark/apps/ogl.html | Benchmark app HTML entrypoint. |
| benchmark/.gitignore | Ignores benchmark build outputs. |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.