UNPKG

playcanvas

Version:

PlayCanvas WebGL game engine

78 lines (75 loc) 2.48 kB
import { BLEND_NONE, DITHER_NONE, FOG_NONE, GAMMA_NONE, REFLECTIONSRC_NONE } from '../../constants.js'; class LitShaderOptions { constructor(){ this.hasTangents = false; this.shaderChunks = null; this.pass = 0; this.alphaTest = false; this.blendType = BLEND_NONE; this.separateAmbient = false; this.screenSpace = false; this.skin = false; this.batch = false; this.useInstancing = false; this.useMorphPosition = false; this.useMorphNormal = false; this.useMorphTextureBasedInt = false; this.nineSlicedMode = 0; this.clusteredLightingEnabled = true; this.clusteredLightingCookiesEnabled = false; this.clusteredLightingShadowsEnabled = false; this.clusteredLightingShadowType = 0; this.clusteredLightingAreaLightsEnabled = false; this.vertexColors = false; this.lightMapEnabled = false; this.dirLightMapEnabled = false; this.useHeights = false; this.useNormals = false; this.useClearCoatNormals = false; this.useAo = false; this.diffuseMapEnabled = false; this.pixelSnap = false; this.ambientSH = false; this.ssao = false; this.twoSidedLighting = false; this.occludeDirect = false; this.occludeSpecular = 0; this.occludeSpecularFloat = false; this.useMsdf = false; this.msdfTextAttribute = false; this.alphaToCoverage = false; this.opacityFadesSpecular = false; this.opacityDither = DITHER_NONE; this.opacityShadowDither = DITHER_NONE; this.cubeMapProjection = 0; this.useSpecular = false; this.useSpecularityFactor = false; this.enableGGXSpecular = false; this.fresnelModel = 0; this.useRefraction = false; this.useClearCoat = false; this.useSheen = false; this.useIridescence = false; this.useMetalness = false; this.useDynamicRefraction = false; this.dispersion = false; this.fog = FOG_NONE; this.gamma = GAMMA_NONE; this.toneMap = -1; this.reflectionSource = REFLECTIONSRC_NONE; this.reflectionEncoding = null; this.reflectionCubemapEncoding = null; this.ambientSource = 'constant'; this.ambientEncoding = null; this.skyboxIntensity = 1.0; this.useCubeMapRotation = false; this.lightMapWithoutAmbient = false; this.lights = []; this.noShadow = false; this.lightMaskDynamic = 0x0; this.userAttributes = {}; this.linearDepth = false; this.shadowCatcher = false; } } export { LitShaderOptions };