Skip to content

Commit 023f2f2

Browse files
committed
feat: migrate ambient env from RGBM to half-float
1 parent 6dbef4a commit 023f2f2

42 files changed

Lines changed: 55 additions & 145 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

e2e/case/.initPostProcessEnv.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export async function initPostProcessEnv(
3838
engine.resourceManager
3939
.load<AmbientLight>({
4040
type: AssetType.Env,
41-
url: "https://gw.alipayobjects.com/os/bmw-prod/89c54544-1184-45a1-b0f5-c0b17e5c3e68.bin"
41+
url: "https://mdn.alipayobjects.com/oasis_be/afts/file/A*KabxT4d8GHcAAAAAgEAAAAgAekp5AQ/Internal/Bake/ambient.env"
4242
})
4343
.then((ambientLight) => {
4444
scene.ambientLight = ambientLight;
@@ -49,7 +49,6 @@ export async function initPostProcessEnv(
4949
sky.material = skyMaterial;
5050
sky.mesh = PrimitiveMesh.createCuboid(engine, 1, 1, 1);
5151
skyMaterial.texture = ambientLight.specularTexture;
52-
skyMaterial.textureDecodeRGBM = true;
5352
return ambientLight;
5453
}),
5554
engine.resourceManager.load<Texture2D>({

e2e/case/camera-ssao.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,11 @@ WebGLEngine.create({
114114
engine.resourceManager
115115
.load<AmbientLight>({
116116
type: AssetType.Env,
117-
url: "https://gw.alipayobjects.com/os/bmw-prod/89c54544-1184-45a1-b0f5-c0b17e5c3e68.bin"
117+
url: "https://mdn.alipayobjects.com/oasis_be/afts/file/A*KabxT4d8GHcAAAAAgEAAAAgAekp5AQ/Internal/Bake/ambient.env"
118118
})
119119
.then((ambientLight) => {
120120
scene.ambientLight = ambientLight;
121121
skyMaterial.texture = ambientLight.specularTexture;
122-
skyMaterial.textureDecodeRGBM = true;
123122
ambientLight.diffuseIntensity = 1;
124123
ambientLight.specularIntensity = 1;
125124
})

e2e/case/material-pbr-clearcoat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ WebGLEngine.create({ canvas: "canvas" }).then((engine) => {
4545
engine.resourceManager
4646
.load<AmbientLight>({
4747
type: AssetType.Env,
48-
url: "https://gw.alipayobjects.com/os/bmw-prod/89c54544-1184-45a1-b0f5-c0b17e5c3e68.bin"
48+
url: "https://mdn.alipayobjects.com/oasis_be/afts/file/A*KabxT4d8GHcAAAAAgEAAAAgAekp5AQ/Internal/Bake/ambient.env"
4949
})
5050
.then((ambientLight) => {
5151
scene.ambientLight = ambientLight;

e2e/case/material-pbr-specular.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ WebGLEngine.create({ canvas: "canvas", shaderLab: new ShaderLab() }).then((engin
5656
engine.resourceManager
5757
.load<AmbientLight>({
5858
type: AssetType.Env,
59-
url: "https://gw.alipayobjects.com/os/bmw-prod/89c54544-1184-45a1-b0f5-c0b17e5c3e68.bin"
59+
url: "https://mdn.alipayobjects.com/oasis_be/afts/file/A*KabxT4d8GHcAAAAAgEAAAAgAekp5AQ/Internal/Bake/ambient.env"
6060
})
6161
.then((ambientLight) => {
6262
scene.ambientLight = ambientLight;

e2e/case/material-pbr.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ WebGLEngine.create({ canvas: "canvas" }).then((engine) => {
4242
engine.resourceManager
4343
.load<AmbientLight>({
4444
type: AssetType.Env,
45-
url: "https://gw.alipayobjects.com/os/bmw-prod/89c54544-1184-45a1-b0f5-c0b17e5c3e68.bin"
45+
url: "https://mdn.alipayobjects.com/oasis_be/afts/file/A*KabxT4d8GHcAAAAAgEAAAAgAekp5AQ/Internal/Bake/ambient.env"
4646
})
4747
.then((ambientLight) => {
4848
scene.ambientLight = ambientLight;

e2e/case/material-shaderReplacement.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ async function main() {
4949
.load([
5050
{
5151
type: AssetType.Env,
52-
url: "https://gw.alipayobjects.com/os/bmw-prod/f369110c-0e33-47eb-8296-756e9c80f254.bin"
52+
url: "https://mdn.alipayobjects.com/oasis_be/afts/file/A*KabxT4d8GHcAAAAAgEAAAAgAekp5AQ/Internal/Bake/ambient.env"
5353
},
5454
{
5555
url: "https://gw.alipayobjects.com/os/bmw-prod/150e44f6-7810-4c45-8029-3575d36aff30.gltf",

e2e/case/physx-collision.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ WebGLEngine.create({ canvas: "canvas", physics: new PhysXPhysics() }).then((engi
146146
engine.resourceManager
147147
.load<AmbientLight>({
148148
type: AssetType.Env,
149-
url: "https://gw.alipayobjects.com/os/bmw-prod/89c54544-1184-45a1-b0f5-c0b17e5c3e68.bin"
149+
url: "https://mdn.alipayobjects.com/oasis_be/afts/file/A*KabxT4d8GHcAAAAAgEAAAAgAekp5AQ/Internal/Bake/ambient.env"
150150
})
151151
.then((ambientLight) => {
152152
scene.ambientLight = ambientLight;

e2e/case/physx-customUrl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ WebGLEngine.create({
151151
engine.resourceManager
152152
.load<AmbientLight>({
153153
type: AssetType.Env,
154-
url: "https://gw.alipayobjects.com/os/bmw-prod/89c54544-1184-45a1-b0f5-c0b17e5c3e68.bin"
154+
url: "https://mdn.alipayobjects.com/oasis_be/afts/file/A*KabxT4d8GHcAAAAAgEAAAAgAekp5AQ/Internal/Bake/ambient.env"
155155
})
156156
.then((ambientLight) => {
157157
scene.ambientLight = ambientLight;

e2e/case/physx-mesh-collider-data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ WebGLEngine.create({ canvas: "canvas", physics: new PhysXPhysics() }).then((engi
266266
engine.resourceManager
267267
.load<AmbientLight>({
268268
type: AssetType.Env,
269-
url: "https://gw.alipayobjects.com/os/bmw-prod/89c54544-1184-45a1-b0f5-c0b17e5c3e68.bin"
269+
url: "https://mdn.alipayobjects.com/oasis_be/afts/file/A*KabxT4d8GHcAAAAAgEAAAAgAekp5AQ/Internal/Bake/ambient.env"
270270
})
271271
.then((ambientLight) => {
272272
scene.ambientLight = ambientLight;

e2e/case/physx-mesh-collider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ WebGLEngine.create({ canvas: "canvas", physics }).then((engine) => {
8585
}),
8686
engine.resourceManager.load<AmbientLight>({
8787
type: AssetType.Env,
88-
url: "https://gw.alipayobjects.com/os/bmw-prod/89c54544-1184-45a1-b0f5-c0b17e5c3e68.bin"
88+
url: "https://mdn.alipayobjects.com/oasis_be/afts/file/A*KabxT4d8GHcAAAAAgEAAAAgAekp5AQ/Internal/Bake/ambient.env"
8989
})
9090
]).then(([gltf, ambientLight]) => {
9191
scene.ambientLight = ambientLight;

0 commit comments

Comments
 (0)