playcanvas 1.51.6 → 1.51.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/playcanvas-extras.js +1 -1
- package/build/playcanvas.dbg.js +5 -5
- package/build/playcanvas.js +5 -5
- package/build/playcanvas.min.js +2 -2
- package/build/playcanvas.mjs +5 -5
- package/build/playcanvas.prf.js +5 -5
- package/package.json +2 -1
- package/scripts/parsers/vox-parser.js +1 -1
- package/scripts/parsers/.DS_Store +0 -0
package/build/playcanvas.dbg.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* PlayCanvas Engine v1.51.
|
|
3
|
+
* PlayCanvas Engine v1.51.7 revision f3750a326 (DEBUG PROFILER)
|
|
4
4
|
* Copyright 2011-2022 PlayCanvas Ltd. All rights reserved.
|
|
5
5
|
*/
|
|
6
6
|
(function (global, factory) {
|
|
@@ -634,8 +634,8 @@
|
|
|
634
634
|
return result;
|
|
635
635
|
}();
|
|
636
636
|
|
|
637
|
-
var version = "1.51.
|
|
638
|
-
var revision = "
|
|
637
|
+
var version = "1.51.7";
|
|
638
|
+
var revision = "f3750a326";
|
|
639
639
|
var config = {};
|
|
640
640
|
var common = {};
|
|
641
641
|
var apps = {};
|
|
@@ -6076,7 +6076,7 @@
|
|
|
6076
6076
|
|
|
6077
6077
|
var ambientConstantPS = "void addAmbient() {\n\tdDiffuseLight += light_globalAmbient;\n}\n";
|
|
6078
6078
|
|
|
6079
|
-
var ambientEnvPS = "#ifndef ENV_ATLAS\n#define ENV_ATLAS\nuniform sampler2D texture_envAtlas;\n#endif\n\nvoid addAmbient() {\n\tvec3 dir = cubeMapRotate(dNormalW) * vec3(-1.0, 1.0, 1.0);\n\tvec2 uv = mapUv(toSphericalUv(dir), vec4(128.0, 256.0 + 128.0, 64.0, 32.0) / atlasSize);\n\n\tvec4 raw = texture2D(texture_envAtlas, uv);\n\tvec3 linear = $DECODE(raw);\n\tdDiffuseLight += processEnvironment(linear);\n}\n";
|
|
6079
|
+
var ambientEnvPS = "#ifndef ENV_ATLAS\n#define ENV_ATLAS\nuniform sampler2D texture_envAtlas;\n#endif\n\nvoid addAmbient() {\n\tvec3 dir = normalize(cubeMapRotate(dNormalW) * vec3(-1.0, 1.0, 1.0));\n\tvec2 uv = mapUv(toSphericalUv(dir), vec4(128.0, 256.0 + 128.0, 64.0, 32.0) / atlasSize);\n\n\tvec4 raw = texture2D(texture_envAtlas, uv);\n\tvec3 linear = $DECODE(raw);\n\tdDiffuseLight += processEnvironment(linear);\n}\n";
|
|
6080
6080
|
|
|
6081
6081
|
var ambientSHPS = "uniform vec3 ambientSH[9];\n\nvoid addAmbient() {\n\tvec3 n = cubeMapRotate(dNormalW);\n\n\tvec3 color =\n\t\tambientSH[0] +\n\t\tambientSH[1] * n.x +\n\t\tambientSH[2] * n.y +\n\t\tambientSH[3] * n.z +\n\t\tambientSH[4] * n.x * n.z +\n\t\tambientSH[5] * n.z * n.y +\n\t\tambientSH[6] * n.y * n.x +\n\t\tambientSH[7] * (3.0 * n.z * n.z - 1.0) +\n\t\tambientSH[8] * (n.x * n.x - n.y * n.y);\n\n\tdDiffuseLight += processEnvironment(max(color, vec3(0.0)));\n}\n";
|
|
6082
6082
|
|
|
@@ -12345,7 +12345,6 @@
|
|
|
12345
12345
|
options.toneMap = stdMat.useGammaTonemap ? scene.toneMapping : -1;
|
|
12346
12346
|
options.useRgbm = stdMat.emissiveMap && stdMat.emissiveMap.type === TEXTURETYPE_RGBM || stdMat.lightMap && stdMat.lightMap.type === TEXTURETYPE_RGBM;
|
|
12347
12347
|
options.fixSeams = stdMat.cubeMap ? stdMat.cubeMap.fixCubemapSeams : false;
|
|
12348
|
-
options.skyboxIntensity = scene.skyboxIntensity !== 1;
|
|
12349
12348
|
var isPhong = stdMat.shadingModel === SPECULAR_PHONG;
|
|
12350
12349
|
var usingSceneEnv = false;
|
|
12351
12350
|
|
|
@@ -12382,6 +12381,7 @@
|
|
|
12382
12381
|
}
|
|
12383
12382
|
}
|
|
12384
12383
|
|
|
12384
|
+
options.skyboxIntensity = usingSceneEnv && scene.skyboxIntensity !== 1;
|
|
12385
12385
|
options.useCubeMapRotation = usingSceneEnv && scene.skyboxRotation && !scene.skyboxRotation.equals(Quat.IDENTITY);
|
|
12386
12386
|
};
|
|
12387
12387
|
|
package/build/playcanvas.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* PlayCanvas Engine v1.51.
|
|
3
|
+
* PlayCanvas Engine v1.51.7 revision f3750a326
|
|
4
4
|
* Copyright 2011-2022 PlayCanvas Ltd. All rights reserved.
|
|
5
5
|
*/
|
|
6
6
|
(function (global, factory) {
|
|
@@ -634,8 +634,8 @@
|
|
|
634
634
|
return result;
|
|
635
635
|
}();
|
|
636
636
|
|
|
637
|
-
var version = "1.51.
|
|
638
|
-
var revision = "
|
|
637
|
+
var version = "1.51.7";
|
|
638
|
+
var revision = "f3750a326";
|
|
639
639
|
var config = {};
|
|
640
640
|
var common = {};
|
|
641
641
|
var apps = {};
|
|
@@ -6006,7 +6006,7 @@
|
|
|
6006
6006
|
|
|
6007
6007
|
var ambientConstantPS = "void addAmbient() {\n\tdDiffuseLight += light_globalAmbient;\n}\n";
|
|
6008
6008
|
|
|
6009
|
-
var ambientEnvPS = "#ifndef ENV_ATLAS\n#define ENV_ATLAS\nuniform sampler2D texture_envAtlas;\n#endif\nvoid addAmbient() {\n\tvec3 dir = cubeMapRotate(dNormalW) * vec3(-1.0, 1.0, 1.0);\n\tvec2 uv = mapUv(toSphericalUv(dir), vec4(128.0, 256.0 + 128.0, 64.0, 32.0) / atlasSize);\n\tvec4 raw = texture2D(texture_envAtlas, uv);\n\tvec3 linear = $DECODE(raw);\n\tdDiffuseLight += processEnvironment(linear);\n}\n";
|
|
6009
|
+
var ambientEnvPS = "#ifndef ENV_ATLAS\n#define ENV_ATLAS\nuniform sampler2D texture_envAtlas;\n#endif\nvoid addAmbient() {\n\tvec3 dir = normalize(cubeMapRotate(dNormalW) * vec3(-1.0, 1.0, 1.0));\n\tvec2 uv = mapUv(toSphericalUv(dir), vec4(128.0, 256.0 + 128.0, 64.0, 32.0) / atlasSize);\n\tvec4 raw = texture2D(texture_envAtlas, uv);\n\tvec3 linear = $DECODE(raw);\n\tdDiffuseLight += processEnvironment(linear);\n}\n";
|
|
6010
6010
|
|
|
6011
6011
|
var ambientSHPS = "uniform vec3 ambientSH[9];\nvoid addAmbient() {\n\tvec3 n = cubeMapRotate(dNormalW);\n\tvec3 color =\n\t\tambientSH[0] +\n\t\tambientSH[1] * n.x +\n\t\tambientSH[2] * n.y +\n\t\tambientSH[3] * n.z +\n\t\tambientSH[4] * n.x * n.z +\n\t\tambientSH[5] * n.z * n.y +\n\t\tambientSH[6] * n.y * n.x +\n\t\tambientSH[7] * (3.0 * n.z * n.z - 1.0) +\n\t\tambientSH[8] * (n.x * n.x - n.y * n.y);\n\tdDiffuseLight += processEnvironment(max(color, vec3(0.0)));\n}\n";
|
|
6012
6012
|
|
|
@@ -12214,7 +12214,6 @@
|
|
|
12214
12214
|
options.toneMap = stdMat.useGammaTonemap ? scene.toneMapping : -1;
|
|
12215
12215
|
options.useRgbm = stdMat.emissiveMap && stdMat.emissiveMap.type === TEXTURETYPE_RGBM || stdMat.lightMap && stdMat.lightMap.type === TEXTURETYPE_RGBM;
|
|
12216
12216
|
options.fixSeams = stdMat.cubeMap ? stdMat.cubeMap.fixCubemapSeams : false;
|
|
12217
|
-
options.skyboxIntensity = scene.skyboxIntensity !== 1;
|
|
12218
12217
|
var isPhong = stdMat.shadingModel === SPECULAR_PHONG;
|
|
12219
12218
|
var usingSceneEnv = false;
|
|
12220
12219
|
|
|
@@ -12251,6 +12250,7 @@
|
|
|
12251
12250
|
}
|
|
12252
12251
|
}
|
|
12253
12252
|
|
|
12253
|
+
options.skyboxIntensity = usingSceneEnv && scene.skyboxIntensity !== 1;
|
|
12254
12254
|
options.useCubeMapRotation = usingSceneEnv && scene.skyboxRotation && !scene.skyboxRotation.equals(Quat.IDENTITY);
|
|
12255
12255
|
};
|
|
12256
12256
|
|