Link Search Menu Expand Document

You are browsing the documentation for v0.x.
Visit here for the newest version.

VglMeshNormalMaterial

A material that maps the normal vectors to RGB colors, corresponding THREE.MeshNormalMaterial.

Properties of VglMaterial are also available as mixin.

props

  • fog boolean (optional)

    Whether the material is affected by fog.

computed properties

  • inst

    The THREE.MeshNormalMaterial instance.

Example

<template>
  <div>
    <vgl-renderer
      antialias
      camera="camera"
      scene="scene"
    >
      <vgl-scene name="scene">
        <vgl-torus-knot-geometry name="geo" />
        <vgl-mesh-normal-material name="mat" />
        <vgl-mesh
          geometry="geo"
          material="mat"
        />
      </vgl-scene>
      <vgl-perspective-camera
        orbit-position="5 1 0.5"
        name="camera"
      />
    </vgl-renderer>
  </div>
</template>