UNPKG

@babylonjs/core

Version:

Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.

14 lines 543 B
import { ShaderCodeNode } from "./shaderCodeNode.js"; /** @internal */ export class ShaderCodeConditionNode extends ShaderCodeNode { process(preprocessors, options, preProcessorsFromCode) { for (let index = 0; index < this.children.length; index++) { const node = this.children[index]; if (node.isValid(preprocessors)) { return node.process(preprocessors, options, preProcessorsFromCode); } } return ""; } } //# sourceMappingURL=shaderCodeConditionNode.js.map