mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-27 09:34:39 +02:00
wip
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
*/
|
||||
|
||||
import * as BABYLON from '@babylonjs/core';
|
||||
import { defineObject } from '../engine.js';
|
||||
import { createPlaneUvMapper, getPlaneUvIndexes } from '../utility.js';
|
||||
import { defineObject } from '../object.js';
|
||||
import { createPlaneUvMapper, getPlaneUvIndexes } from '../../utility.js';
|
||||
|
||||
const remap = (value: number, fromMin: number, fromMax: number, toMin: number, toMax: number) => {
|
||||
return toMin + ((value - fromMin) / (fromMax - fromMin)) * (toMax - toMin);
|
||||
|
||||
Reference in New Issue
Block a user