Skip to content

Commit 2da08e7

Browse files
MiiBondMike Bond
andauthored
Fix adding dominant direction to env (#16733)
Looks like the dominant direction wasn't actually getting added to the .env file because the wrong texture was being referenced. Co-authored-by: Mike Bond <[email protected]>
1 parent b85d3ee commit 2da08e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/dev/core/src/Misc/environmentTextureTools.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ export async function CreateEnvTextureAsync(texture: BaseTexture, options: Creat
365365
info.irradiance.irradianceTexture = {
366366
size: irradianceTexture.getSize().width,
367367
faces: [],
368-
dominantDirection: texture._dominantDirection?.asArray(),
368+
dominantDirection: irradianceTexture._dominantDirection?.asArray(),
369369
};
370370

371371
for (let face = 0; face < 6; face++) {

0 commit comments

Comments
 (0)