Skip to content

Home page + benchmark + llms.txt + API updates#45

Merged
jsulpis merged 22 commits into
mainfrom
hero
Jun 10, 2026
Merged

Home page + benchmark + llms.txt + API updates#45
jsulpis merged 22 commits into
mainfrom
hero

Conversation

@jsulpis

@jsulpis jsulpis commented Jun 9, 2026

Copy link
Copy Markdown
Owner

No description provided.

@vercel

vercel Bot commented Jun 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
radiance Ready Ready Preview, Comment Jun 10, 2026 5:23pm

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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 new BundleSizeGraph component.
  • Update docs home page, examples metadata, styling, and add vitepress-plugin-llms configuration to generate llms.txt.
  • Update library helpers and passes: onPointerEvents now targets generic HTMLElements and returns boundingRect/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.

Comment thread lib/src/helpers/onPointerEvents.ts
Comment thread docs/components/Hero/HomeHeroShader.vue
Comment thread docs/components/Hero/HomeHeroShader.vue
Comment thread docs/examples/gpgpu/maths/index.ts Outdated
Comment thread docs/examples/basics/uniforms/index.ts Outdated
Comment thread docs/examples/interactions/pointer/index.md
Comment thread pnpm-lock.yaml
@jsulpis jsulpis merged commit 10520b2 into main Jun 10, 2026
8 checks passed
@jsulpis jsulpis deleted the hero branch June 10, 2026 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants