UNPKG

polygonjs-engine

Version:

node-based webgl 3D engine https://polygonjs.com

26 lines (25 loc) 888 B
/** * Returns the resolution of a texture of a COP node. * * @remarks * It takes 1 or 2 arguments * * copRes(<input_index_or_node_path\>, <vector_component/>) * * - **<input_index_or_node_path\>** is a number or a string * - **<vector_component\>** is a string or number, either 'x', 'y', 0 or 1 * * ## Usage * * - `copRes('/COP/image1')` - returns the size of the texture, as a THREE.Vector2 * - `copRes('/COP/image1', 'x')` - returns the x component of the size of the texture, as a number * */ import { BaseMethod } from './_Base'; import { MethodDependency } from '../MethodDependency'; export declare class CopResExpression extends BaseMethod { protected _require_dependency: boolean; static required_arguments(): string[][]; find_dependency(index_or_path: number | string): MethodDependency | null; process_arguments(args: any[]): Promise<number>; }