@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.
17 lines • 535 B
JavaScript
import { ShaderDefineExpression } from "../shaderDefineExpression.js";
/** @internal */
export class ShaderDefineIsDefinedOperator extends ShaderDefineExpression {
constructor(define, not = false) {
super();
this.define = define;
this.not = not;
}
isTrue(preprocessors) {
let condition = preprocessors[this.define] !== undefined;
if (this.not) {
condition = !condition;
}
return condition;
}
}
//# sourceMappingURL=shaderDefineIsDefinedOperator.js.map