입체 물체를 비추는 빛의 색과 세기가 바뀌어 물체의 다른 부분이 드러나는 연출The color and intensity of light on a 3D object change, revealing different parts of it.
광원 세기가 0에서 3까지 1.6초 동안 올라가며 청색에서 주황으로 색이 바뀌고, 물체의 윗면 윤곽이 먼저 밝아진다
세기가 갑자기 튀어 흰색으로 날아가거나, 색만 바뀌고 광원 위치가 그대로라 평평해 보인다
기본값은 클립에 쓴 값Defaults are the values used in the clip
| 항목PARAM | 기본DEFAULT | 범위RANGE | 메모NOTE |
|---|---|---|---|
| 시간 | 1.6s | 1.0~2.4s | 세기와 색 동시 |
| intensity | 0→3 | 0~3 | 3 초과 금지 |
| 색 | #4aa3ff→#ff9a3c | 2색 | RGB 보간 |
| 광원 이동 | x -2→2 | -3~3 | 선택 |
| 이징 | power2.inOut | sine~power3 |
const c0 = new THREE.Color('#4aa3ff'), c1 = new THREE.Color('#ff9a3c');
const s = { t: 0, k: 0 };
tl.to(s, { t: 1, k: 3, duration: 1.6, ease: 'power2.inOut', onUpdate() {
light.color.copy(c0).lerp(c1, s.t); light.intensity = s.k;
light.position.x = -2 + 4 * s.t; } }, 0.3);그대로 붙여 넣는다Paste as is
Three.js와 GSAP으로 <모델>의 조명을 애니메이션해 줘. 0.3초부터 1.6초 동안 power2.inOut으로 광원 intensity를 0에서 3으로, 색을 #4aa3ff에서 #ff9a3c로 RGB 보간하고 광원 x를 -2에서 2로 옮겨. 세기는 3을 넘기지 않고 값은 객체 tween의 onUpdate로 갱신해 paused 타임라인에서 seek 가능하게 해.
Use Three.js and GSAP to animate the lighting on <model>. From 0.3 seconds over 1.6 seconds with power2.inOut, raise light intensity from 0 to 3, lerp the color from #4aa3ff to #ff9a3c in RGB, and move the light x from -2 to 2. Keep intensity at or below 3, updating values in the onUpdate of an object tween on a paused, seekable timeline.
<파일>에 animated-lighting을 적용해. 값 객체 {t,k}를 position 0.3, duration 1.6, ease power2.inOut으로 t 0→1, k 0→3 tween하고 onUpdate에서 light.color, intensity, position.x를 갱신한다. 0.3초는 어두움, 1.1초는 중간 색과 세기, 2.0초는 주황 최대 밝기이며 흰색으로 날아가지 않는지 캡처로 확인해.
Apply animated-lighting in <file>. Tween a value object {t,k} at position 0.3, duration 1.6, ease power2.inOut with t 0 to 1 and k 0 to 3, and update light.color, intensity and position.x in onUpdate. Capture 0.3s (dark), 1.1s (mid color and intensity) and 2.0s (orange at maximum, not blown out to white).
HyperFrames · ReelForge · Scrolline
개념 출처와 라이선스. 구현은 이 레포에서 새로 씀Concept sources and licenses. Implementations are original to this repo