Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/remapper/src/deps.ts>three.Source

A framework for Beat Saber map scripting.
Go to Latest
class three.Source
Re-export
import { three } from "https://deno.land/x/remapper@2.1.0/src/deps.ts";
const { Source } = three;

Represents the data source of a texture.

Constructors

new
Source(data: any)

Properties

data: any

The actual data of a texture. The type of this property depends on the texture that uses this instance.

readonly
isTexture: true
writeonly
needsUpdate: boolean

Set this to true to trigger a data upload to the GPU next time the source is used.

uuid: string

UUID of this object instance. This gets automatically assigned, so this shouldn't be edited.

version: number

This starts at 0 and counts how many times [property:Boolean needsUpdate] is set to true.

Methods

toJSON(meta: any): any

Convert the data source to three.js JSON Object/Scene format.