ThreeJs 学习资料


英文纸质在线书

  • discoverthreejs
  • The Book of Shaders
  • Physically Based Rendering

Converting degrees to radians

import { MathUtils } from 'three';
const radiansPerSecond = MathUtils.degToRad(30);

Measuring Time Across Frames

.getDelta告诉我们自上一次调用.getDelta过去了多长时间

import { Clock } from 'three';
const clock = new Clock();
const delta = clock.getDelta();