BaekRyang
ef992b5525
fix: Fix coordinate system to match Flutter implementation
...
- Fix y-coordinate inversion between UI (top-left origin) and WebGL (bottom-left origin)
- Convert UI coordinates to WebGL coordinates when passing to shader
- Invert drag vector y-direction to match coordinate system
- Add getResolution() method to ThreeScene for coordinate conversion
- Update shader to use normalized drag vectors directly
This resolves the issue where distortion appeared at opposite y-position from clicked point.
2025-11-05 11:20:07 +09:00
BaekRyang
e371321fd2
feat: Fix image distortion shader and improve loading state
...
- Fix distortion.frag.glsl to match Flutter original implementation
- Update computeUV function with single Newton-Raphson iteration
- Fix coordinate transformation (normalized to pixel)
- Fix distortion application logic
- Add break after first matching area (Flutter behavior)
- Add image loading state management
- Add imageLoaded state
- Add loading progress callback
- Add loading UI indicator
- Improve error handling
- Add comprehensive debug logging
- ShaderManager: fetch status and shader lengths
- ThreeScene: shader compilation check, render calls
- ImageDistortion: lifecycle and loading status
- Add test/debug shaders for troubleshooting
- test.frag.glsl: Simple pass-through shader
- debug.frag.glsl: Area visualization shader
- Fix infinite loop bug in animationCallback
- Use setState updater function to avoid dependency
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-04 11:51:39 +09:00
BaekRyang
c3b5aaadcb
Debug: Add more detailed logging for containerRef
2025-11-04 10:55:43 +09:00
BaekRyang
d66c43f6f1
Debug: Add console logs for troubleshooting
2025-11-04 10:49:38 +09:00
BaekRyang
ceab8f4332
Fix: Update three.js peer dependency to support newer versions
2025-11-04 10:46:56 +09:00
BaekRyang
05b47fb177
Fix: Resolve infinite loop in animationCallback using setState with updater function
2025-11-04 10:45:44 +09:00
BaekRyang
d55e5c7bb7
Add repository field to package.json for git install support
2025-11-04 10:21:07 +09:00
BaekRyang
6ddae08d86
init dist
2025-11-04 10:17:17 +09:00
BaekRyang
808ddd99ec
init
2025-11-04 10:15:34 +09:00