three打字啊一个蠕动的圆环三维效果代码

代码语言:html

所属分类:三维

代码描述:three打字啊一个蠕动的圆环三维效果代码

代码标签: 一个 蠕动 圆环 三维 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<html lang="en"><head>

  <meta charset="UTF-8">
  

  
  
  
<style>
@import url("https://fonts.googleapis.com/css?family=Raleway:400,400i,700");
body, html {
  margin: 0;
  height: 100vh;
}

canvas {
  width: 100%;
  height: 100%;
}

h1 {
  position: absolute;
  bottom: 1em;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 1;
  font-size: 20px;
  font-family: Raleway, sans-serif;
  font-weight: normal;
}

a {
  color: dodgerblue;
}
</style>




</head>

<body>


  
      <script  type="module">
import * as THREE from "https://unpkg.com/three@0.125.1/build/three.module.js";
import { OrbitControls } from "https://unpkg.com/three@0.125.1/examples/jsm/controls/OrbitControls.js";
import { OutlineEffect } from "https://unpkg.com/three@0.125.1/examples/jsm/effects/OutlineEffect.js";
import { makeNoise4D } from "https://cdn.skypack.dev/open-simplex-noise";
const noise4D = makeNoise4D(Date.now());

class Scene {
  constructor(sketch, settings) {
    this.sketch = sketch;
    this.settings = { ...settings };

    this.scene = new THREE.Scene();
    this.scene.background = new THREE.Color(0xffffff);
    // this.scene.fog = new THREE.FogExp2(0x222277, 0.2);
    return this.scene;
  }}

class Renderer {
  constructor(sketch, settings) .........完整代码请登录后点击上方下载按钮下载查看

网友评论0