(sampler, componentCount)
| 55 | |
| 56 | // Sample animation at t=0 |
| 57 | function sampleAtT0(sampler, componentCount) { |
| 58 | if (!sampler.output || sampler.output.length === 0) return null; |
| 59 | const result = []; |
| 60 | for (let i = 0; i < componentCount; i++) { |
| 61 | result.push(sampler.output[i]); |
| 62 | } |
| 63 | return result; |
| 64 | } |
| 65 | |
| 66 | // Get animated transforms at t=0 |
| 67 | const animTransforms = new Map(); |