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.

40 lines (39 loc) 1.46 kB
import { AbstractEngine } from "../abstractEngine.js"; import "./abstractEngine.alpha.js"; AbstractEngine.prototype.getInputElement = function () { return this._renderingCanvas; }; AbstractEngine.prototype.getDepthFunction = function () { return this._depthCullingState.depthFunc; }; AbstractEngine.prototype.setDepthFunction = function (depthFunc) { this._depthCullingState.depthFunc = depthFunc; }; AbstractEngine.prototype.setDepthFunctionToGreater = function () { this.setDepthFunction(516); }; AbstractEngine.prototype.setDepthFunctionToGreaterOrEqual = function () { this.setDepthFunction(518); }; AbstractEngine.prototype.setDepthFunctionToLess = function () { this.setDepthFunction(513); }; AbstractEngine.prototype.setDepthFunctionToLessOrEqual = function () { this.setDepthFunction(515); }; AbstractEngine.prototype.getDepthWrite = function () { return this._depthCullingState.depthMask; }; AbstractEngine.prototype.setDepthWrite = function (enable) { this._depthCullingState.depthMask = enable; }; AbstractEngine.prototype.setAlphaConstants = function (r, g, b, a) { this._alphaState.setAlphaBlendConstants(r, g, b, a); }; AbstractEngine.prototype.getAlphaMode = function (targetIndex = 0) { return this._alphaMode[targetIndex]; }; AbstractEngine.prototype.getAlphaEquation = function (targetIndex = 0) { return this._alphaEquation[targetIndex]; }; //# sourceMappingURL=abstractEngine.states.js.map