@tolokoban/tgd
Version:
ToloGameDev library for WebGL2
41 lines • 1.11 kB
TypeScript
import { TgdCodeFunctions } from "../shader";
/**
* Convert uv coords ([0.0, +1.0]) into xy coords ([-1.0, +1.0]).
* Requires uniform `uniAspectRatio`.
*/
export declare function tgdCodeFunction_mapRange(options?: Partial<{
name: string;
}>): TgdCodeFunctions;
export declare function tgdCodeFunction_mod289(options?: Partial<{
name: string;
}>): {
[x: string]: string;
};
export declare function tgdCodeFunction_permute(options?: Partial<{
name: string;
}>): {
[x: string]: string;
};
/**
* Taylor approximation of inverse square root.
*/
export declare function tgdCodeFunction_taylorInvSqrt(options?: Partial<{
name: string;
}>): {
[x: string]: string;
};
/**
* Quintic function.
*/
export declare function tgdCodeFunction_quintic(options?: Partial<{
name: string;
}>): {
[x: string]: string;
};
export declare function tgdCodeFunction_float01ToVec3(options?: Partial<{
name: string;
}>): TgdCodeFunctions;
export declare function tgdCodeFunction_vec3ToFloat01(options?: Partial<{
name: string;
}>): TgdCodeFunctions;
//# sourceMappingURL=math.d.ts.map