UNPKG

kepler.gl

Version:

kepler.gl is a webgl based application to visualize large scale location data in the browser

24 lines (23 loc) 942 B
/// <reference types="luma.gl__webgl" /> import { Texture2D } from '@luma.gl/webgl'; export interface ShaderModule { /** A unique name for this shader module */ name: string; /** A fragment shader to be used in both WebGL1 and WebGL2 environments */ fs?: string; /** A fragment shader to be used only in WebGL1 environments */ fs1?: string; /** A fragment shader to be used only in WebGL2 environments */ fs2?: string; /** A vertex shader to inject */ vs?: string; uniforms?: Record<string, any>; getUniforms?: (opts: object) => GetUniformsOutput; /** Optional constants to define when injecting */ defines?: Record<string, string>; inject?: Record<string, string>; dependencies?: ShaderModule[]; deprecations?: any[]; } export declare type UniformType = number | number[] | Texture2D | undefined; export declare type GetUniformsOutput = Record<string, UniformType> | null;