Link

VglObjLoader

props

  • src string (optional)

computed properties

  • inst

    dependencies: src, vglObject3d

Example

<template>
  <vgl-renderer>
    <vgl-scene>
      <vgl-obj-loader src="/obj/seahorse.obj" />
      <vgl-ambient-light intensity="0.5" />
      <vgl-directional-light
        position="1 1 1"
        intensity="0.5"
      />
    </vgl-scene>
    <vgl-perspective-camera
      orbit-position="300 1 0.2"
      orbit-target="0 0 -300"
    />
  </vgl-renderer>
</template>