MCPcopy Create free account
hub / github.com/CNCKitchen/stlTexturizer / createFallbackDataTexture

Function createFallbackDataTexture

js/previewMaterial.js:509–516  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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.

Callers 1

buildUniformsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected