Skip to content

armgit / 67.js

Public Imported from GitHub
0

3D engine that AI agents drive

Name bake.irradianceGrid in the gridFog error, matching the test (issue #543)

Nguyen Xuan Anabfbcb9d5ed9
diff --git a/src/agent-bake.js b/src/agent-bake.js
index 67e09132..1df31bb1 100644
--- a/src/agent-bake.js
+++ b/src/agent-bake.js
@@ -48,7 +48,7 @@ export function normalizeAgentBake(input) {
}
if (input.gridFog === true) {
if (!irradianceGrid) {
- throw new RangeError('bake.gridFog needs irradianceGrid.');
+ throw new RangeError('bake.gridFog needs bake.irradianceGrid.');
}
resolved.gridFog = true;
}