6

A Pen by Toshiya Marukubo

 2 years ago
source link: https://codepen.io/toshiya-marukubo/pen/podGpLB
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

A Pen by Toshiya Marukubo

0 unsaved changes
xxxxxxxxxx
xxxxxxxxxx
xxxxxxxxxx
import {Ease} from 'https://assets.codepen.io/3919397/ease.js';
import {Utils} from 'https://assets.codepen.io/3919397/utilities.js';
import {OrbitControls} from 'https://cdn.jsdelivr.net/npm/[email protected]/examples/jsm/controls/OrbitControls.js';
// vertex shader source
const vertexShader = `
uniform float uTime;
uniform float uDist;
varying vec2 vUv;
varying vec3 vNormal;
varying vec3 vPos;
float PI = 3.14159265359;
float map(float value, float min1, float max1, float min2, float max2) {
  return min2 + (value - min1) * (max2 - min2) / (max1 - min1);
}
float ease(float t) {

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK