Home Reference Source
import {TetrahedralUpscaler} from 'postprocessing'
public class | source

TetrahedralUpscaler

A tetrahedral upscaler that can be used to augment 3D LUTs.

Based on an implementation by Garrett Johnson: https://github.com/gkjohnson/threejs-sandbox/blob/master/3d-lut/src/TetrahedralUpscaler.js

Static Method Summary

Static Public Methods
public static

expand(data: TypedArray, size: Number): TypedArray

Expands the given data to the target size.

Static Public Methods

public static expand(data: TypedArray, size: Number): TypedArray source

Expands the given data to the target size.

Params:

NameTypeAttributeDescription
data TypedArray

The input RGBA data. Assumed to be cubic.

size Number

The target size.

Return:

TypedArray

The new data.