UNPKG

@luma.gl/shadertools

Version:

Shader module system for luma.gl

15 lines 560 B
// luma.gl // SPDX-License-Identifier: MIT // Copyright (c) vis.gl contributors import { generateGLSLForModule } from "./glsl/generate-glsl.js"; import { generateWGSLForModule } from "./wgsl/generate-wgsl.js"; /** Generates shader code for a module */ export function generateShaderForModule(module, options) { switch (options.shaderLanguage) { case 'glsl': return generateGLSLForModule(module, options); case 'wgsl': return generateWGSLForModule(module, options); } } //# sourceMappingURL=generate-shader.js.map