Commit 5cc7048
authored
fix(retro-grid): replace the CSS perspective grid with a WebGL renderer (#928)
* fix(retro-grid): switch the grid renderer to raw webgl
* fix(retro-grid): match webgl line rendering to the original css grid
* fix(retro-grid): fine-tune webgl grid lines to match the css demo
* fix(retro-grid): make the webgl grid scroll seamless
* fix(retro-grid): reduce top grid density with distance-based lod
* fix(retro-grid): keep the css fallback until webgl is ready
* refactor(retro-grid): keep the webgl pipeline stable across prop updates
* fix(retro-grid): recover gracefully from webgl context loss
* fix(retro-grid): normalize fallback props to match the webgl renderer
* fix(retro-grid): preserve line color alpha in the webgl shader
* fix(retro-grid): resolve css colors via canvas pixels for webgl parity1 parent 1a4ebf4 commit 5cc7048
9 files changed
Lines changed: 1626 additions & 130 deletions
File tree
- apps/www
- content/docs/components
- public
- r
- registry
- magicui
- styles
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
| 38 | + | |
56 | 39 | | |
57 | 40 | | |
58 | 41 | | |
| |||
0 commit comments