pcbjam/scripts
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Viktor Vaczi 6c2cf85177 feat(webgl): Fix GL initialization and add GLSL ES shader conversion
Progress on WEBGL_GAL rendering:

- Fix GLImmediateShim initialization by adding GL function dependencies
  (glBegin, glEnd, glVertex2f, etc.) to $GLImmediateShim__deps
- Add COLOR4D(EDA_COLOR_T) constructor stub to wasm_stubs.cpp
- Fix GAL context locking - add LockContext/UnlockContext calls
- Add exception catching to build (-sNO_DISABLE_EXCEPTION_CATCHING)
- Create GLSL ES 1.00 shader converter in generate_shaders.py:
  - Remove #version 120 directive (ES 1.00 default)
  - Add precision highp float/int qualifiers
  - Convert int * float to float literals (2 * x -> 2.0 * x)
- Update build script to clean output files for linker flag changes
- Add console capture to test spec for debugging

Current status:
- WASM builds and loads successfully
- GLImmediateShim initializes correctly
- WEBGL_GAL creates successfully
- Shader compilation fails due to Emscripten LEGACY_GL_EMULATION
  prepending code that conflicts with custom shader precision

Next: Investigate shader compilation with LEGACY_GL_EMULATION or
consider alternative approaches for GL compatibility.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 21:59:21 +01:00
..
common feat(webgl): Add WebGL GAL test infrastructure (Phase 1) 2026-01-07 16:11:31 +01:00
config Add autom4te wrapper to keep submodules clean 2025-12-27 09:21:31 +01:00
deps Remove .git from meson subprojects to keep IDE clean 2025-12-27 09:37:20 +01:00
kicad Reduce KiCad fork divergence with CMake cleanup 2026-01-05 14:03:03 +01:00
build-gal-native-test.sh feat(webgl): Add GAL native test harness for visual regression testing 2026-01-07 09:42:31 +01:00
build-gal-webgl-test.sh feat(webgl): Fix GL initialization and add GLSL ES shader conversion 2026-01-07 21:59:21 +01:00
build-wasm-test.sh Restore elementtracker.h and add build logging 2026-01-03 11:55:54 +01:00
build-wxuniversal-wasm.sh Restore elementtracker.h and add build logging 2026-01-03 11:55:54 +01:00
compare-screenshots.sh Add baseline screenshots and visual regression testing 2025-11-29 19:55:12 +01:00
create-feature-patches.sh Add feature branch patch management system 2026-01-06 16:17:52 +01:00
kicad-diff-stats.sh Reduce KiCad fork divergence with CMake cleanup 2026-01-05 14:03:03 +01:00
test-gal-regression.sh feat(webgl): Add WebGL GAL test infrastructure (Phase 1) 2026-01-07 16:11:31 +01:00
update-baseline-screenshots.sh Fix Asyncify and improve build process 2025-12-14 11:59:50 +01:00