We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

How to import js file in three.js and reuse in runcode()?

Home Forums Programming How to import js file in three.js and reuse in runcode()?

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #44723
    derekwang0605
    Customer

    At first, I import the below two js files.
    <script type=”module”>
    import * as THREE from ‘../../build/three.module.js’;
    import {StereoEffect} from ‘./StereoEffect.js’;
    </script>
    I tried to use the StereoEffect.js in runcode().
    effect = new StereoEffect( renderer );
    But it said StereoEffect is not found. Anything wrong with the call?

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.