threepipe
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

GeometryUVPreviewPlugin.md 955B

před 1 rokem
123456789101112131415161718192021222324252627282930313233
  1. ---
  2. prev:
  3. text: 'RenderTargetPreviewPlugin'
  4. link: './RenderTargetPreviewPlugin'
  5. next:
  6. text: 'FrameFadePlugin'
  7. link: './FrameFadePlugin'
  8. ---
  9. # GeometryUVPreviewPlugin
  10. [//]: # (todo: image)
  11. [Example](https://threepipe.org/examples/#geometry-uv-preview/) —
  12. [Source Code](https://github.com/repalash/threepipe/blob/master/src/plugins/ui/GeometryUVPreviewPlugin.ts) —
  13. [API Reference](https://threepipe.org/docs/classes/GeometryUVPreviewPlugin.html)
  14. GeometryUVPreviewPlugin is a useful development and debugging plugin
  15. that adds a panel to the viewer to show the UVs of a geometry.
  16. ```typescript
  17. import {ThreeViewer, GeometryUVPreviewPlugin, SphereGeometry} from 'threepipe'
  18. const viewer = new ThreeViewer({...})
  19. const previewPlugin = viewer.addPluginSync(new GeometryUVPreviewPlugin())
  20. const geometry = new SphereGeometry(1, 32, 32)
  21. // Show the normal buffer in a panel
  22. previewPlugin.addGeometry(geometry, 'sphere')
  23. ```