this additional options can use on MeshPhysicalMaterial
update
there is no change in the result even after applying the tolerance to BufferGeometryUtils's mergeVertices function, since the step_size value was added when dcm to ply converting using trimesh.
230625 - Add
dat.GUI
dat.GUI
: https://threejs.org/examples/webgl2_materials_texture3d.htmlπ Works μμ λ΄μ©
[feat & ui] Add UI uses
dat.GUI
on screen that changes rendering properties.[feat & ui] Add UI uses
dat.GUI
on screen that changes rendering properties. πImport Dat.GUI
Add configs
guiConfig
,defaultGuiConfig
atfrontend\src\components\threeViewer\Viewer.tsx
loader.ts
GUI init πββοΈ
Use
guiCofing
valueshandleGeometry()
MeshStandardMaterial
toMeshPhysicalMaterial
for use clearcoat and reflectivityAdd guiConfig to useEffect's dependency array.
rerender when guiConfig's value change.
when guiConfig changes => setState for change UI
Result
1. wireframe mode
true
tofalse
2. metarial color
3. add metarial options
MeshPhysicalMaterial