- 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>
8 lines
201 B
GLSL
8 lines
201 B
GLSL
uniform sampler2D u_texture;
|
|
varying vec2 vUv;
|
|
|
|
void main() {
|
|
// 간단한 테스트: 텍스처를 그대로 표시 (왜곡 없음)
|
|
vec4 color = texture2D(u_texture, vUv);
|
|
gl_FragColor = color;
|
|
} |