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>