| 507 | symmetricDisplacement: { value: settings.symmetricDisplacement ? 1 : 0 }, |
| 508 | noDownwardZ: { value: settings.noDownwardZ ? 1 : 0 }, |
| 509 | useDisplacement: { value: settings.useDisplacement ? 1 : 0 }, |
| 510 | textureAspect: { value: new THREE.Vector2(settings.textureAspectU ?? 1, settings.textureAspectV ?? 1) }, |
| 511 | boundaryEdgeTex: { value: createFallbackDataTexture() }, |
| 512 | boundaryEdgeCount: { value: 0 }, |
| 513 | boundaryEdgeTexWidth: { value: 1.0 }, |
| 514 | boundaryFalloffDist: { value: settings.boundaryFalloff ?? 0.0 }, |
| 515 | boundaryFalloffCurve: { value: FALLOFF_CURVE_INDEX[settings.boundaryFalloffCurve] ?? 0 }, |
| 516 | }; |
| 517 | } |
| 518 | |
| 519 | // Maps settings.boundaryFalloffCurve to the shader's integer uniform. |