@luma.gl/shadertools
Version:
Shader module system for luma.gl
58 lines • 5.02 kB
TypeScript
/**
* Marks GLSL shaders for syntax highlighting: glsl`...`
* Install https://marketplace.visualstudio.com/items?itemName=boyswan.glsl-literal
*/
export type { PlatformInfo } from "./lib/shader-assembly/platform-info.js";
export type { ShaderBindingDebugRow } from "./lib/shader-assembly/wgsl-binding-debug.js";
export type { ShaderModule } from "./lib/shader-module/shader-module.js";
export type { ShaderPass } from "./lib/shader-module/shader-pass.js";
export type { ShaderModuleUniformValue, UniformTypes } from "./lib/utils/uniform-types.js";
export { initializeShaderModule, initializeShaderModules } from "./lib/shader-module/shader-module.js";
export { getShaderModuleUniforms } from "./lib/shader-module/shader-module.js";
export { getShaderModuleDependencies } from "./lib/shader-module/shader-module-dependencies.js";
export { checkShaderModuleDeprecations } from "./lib/shader-module/shader-module.js";
export type { GLSLUniformBlockInfo, ShaderModuleUniformLayoutStage, ShaderModuleUniformLayoutValidationResult } from "./lib/shader-module/shader-module-uniform-layout.js";
export { getGLSLUniformBlocks, getShaderModuleUniformBlockFields, getShaderModuleUniformBlockName, getShaderModuleUniformLayoutValidationResult, validateShaderModuleUniformLayout, warnIfGLSLUniformBlocksAreNotStd140 } from "./lib/shader-module/shader-module-uniform-layout.js";
export { getShaderModuleSource } from "./lib/shader-assembly/assemble-shaders.js";
export { resolveModules as _resolveModules } from "./lib/shader-module/shader-module-dependencies.js";
export { getDependencyGraph as _getDependencyGraph } from "./lib/shader-module/shader-module-dependencies.js";
export { ShaderAssembler } from "./lib/shader-assembler.js";
export type { ShaderHook } from "./lib/shader-assembly/shader-hooks.js";
export type { ShaderInjection } from "./lib/shader-assembly/shader-injections.js";
export { getShaderInfo } from "./lib/glsl-utils/get-shader-info.js";
export { getQualifierDetails, getPassthroughFS, typeToChannelSuffix, typeToChannelCount, convertToVec4 } from "./lib/glsl-utils/shader-utils.js";
export type { ShaderGenerationOptions } from "./lib/shader-generator/generate-shader.js";
export { generateShaderForModule } from "./lib/shader-generator/generate-shader.js";
export { capitalize } from "./lib/shader-generator/utils/capitalize.js";
export { preprocess } from "./lib/preprocessor/preprocessor.js";
export { assembleGLSLShaderPair } from "./lib/shader-assembly/assemble-shaders.js";
export { combineInjects } from "./lib/shader-assembly/shader-injections.js";
export { toHalfFloat, fromHalfFloat } from "./modules/math/fp16/fp16-utils.js";
export { fp64ify, fp64LowPart, fp64ifyMatrix4 } from "./modules/math/fp64/fp64-utils.js";
export { normalizeByteColor3, normalizeByteColor4, resolveUseByteColors } from "./lib/color/normalize-byte-colors.js";
export { random } from "./modules/math/random/random.js";
export { fp32 } from "./modules/math/fp32/fp32.js";
export { fp64, fp64arithmetic } from "./modules/math/fp64/fp64.js";
export type { FloatColorsProps, FloatColorsUniforms } from "./modules/color/float-colors.js";
export { floatColors } from "./modules/color/float-colors.js";
export type { PickingProps, PickingUniforms } from "./modules/engine/picking/picking.js";
export { picking } from "./modules/engine/picking/picking.js";
export { skin } from "./modules/engine/skin/skin.js";
export { type Light, type AmbientLight, type PointLight, type SpotLight, type DirectionalLight, type LightingLightUniform } from "./modules/lighting/lights/lighting.js";
export type { LightingProps, LightingUniforms } from "./modules/lighting/lights/lighting.js";
export { lighting } from "./modules/lighting/lights/lighting.js";
export type { IBLBindings } from "./modules/lighting/ibl/ibl.js";
export { ibl } from "./modules/lighting/ibl/ibl.js";
export { dirlight } from "./modules/lighting/no-material/dirlight.js";
export type { LambertMaterialProps } from "./modules/lighting/lambert-material/lambert-material.js";
export { lambertMaterial } from "./modules/lighting/lambert-material/lambert-material.js";
export type { GouraudMaterialProps } from "./modules/lighting/gouraud-material/gouraud-material.js";
export { gouraudMaterial } from "./modules/lighting/gouraud-material/gouraud-material.js";
export type { PhongMaterialProps } from "./modules/lighting/phong-material/phong-material.js";
export { phongMaterial } from "./modules/lighting/phong-material/phong-material.js";
export type { PBRMaterialBindings, PBRMaterialProps, PBRMaterialUniforms } from "./modules/lighting/pbr-material/pbr-material.js";
export type { PBRSceneBindings, PBRSceneProps, PBRSceneUniforms } from "./modules/lighting/pbr-material/pbr-scene.js";
export type { PBRProjectionProps } from "./modules/lighting/pbr-material/pbr-projection.js";
export { pbrMaterial } from "./modules/lighting/pbr-material/pbr-material.js";
export { pbrScene } from "./modules/lighting/pbr-material/pbr-scene.js";
//# sourceMappingURL=index.d.ts.map