(hex: string)
| 82 | |
| 83 | // Convert hex colors to RGB |
| 84 | const parseColor = (hex: string): THREE.Vector3 => { |
| 85 | const color = new THREE.Color(hex); |
| 86 | return new THREE.Vector3(color.r, color.g, color.b); |
| 87 | }; |
| 88 | |
| 89 | // Shader material |
| 90 | const vertexShader = ` |