UNPKG

@luma.gl/shadertools

Version:

Shader module system for luma.gl

21 lines 561 B
// luma.gl // SPDX-License-Identifier: MIT // Copyright (c) vis.gl contributors import { lights } from "../lights/lights.js"; import { vs } from "./pbr-vertex-glsl.js"; import { fs } from "./pbr-fragment-glsl.js"; /** * An implementation of PBR (Physically-Based Rendering). * Physically Based Shading of a microfacet surface defined by a glTF material. */ export const pbr = { name: 'pbr', vs, fs, defines: { LIGHTING_FRAGMENT: 1 }, dependencies: [lights], getUniforms: (props) => props }; //# sourceMappingURL=pbr.js.map