Closed Aadjou closed 4 years ago
I'm on it. Code looks good! I especially like that you are using weighted grayscale conversion instead of just using the mathematical RGB average in https://github.com/archilogic-com/3dio-js/pull/113/files#diff-4789112aae09f0bb59ea558bff779f98R168 Will give it some testing tomorrow.
Works like a charm! :) One minor glitch: when using lightMapSaturation:0
the value automatically jumps to the default: 1
.
Proposal: Using:
this.lightMapSaturation = params.lightMapSaturation !== undefined ? params.lightMapSaturation : DEFAULT_LIGHT_MAP_SATURATION
in: https://github.com/archilogic-com/3dio-js/pull/113/files#diff-d00d2508afc2df8d84bea5785f0cffc3R26 and:
lightMapSaturation: { value: params.lightMapSaturation !== undefined ? params.lightMapSaturation : DEFAULT_LIGHT_MAP_SATURATION },
in https://github.com/archilogic-com/3dio-js/pull/113/files#diff-d00d2508afc2df8d84bea5785f0cffc3R39
Scope & Features:
The changes allow the user to have full control over the look of their scene
Design:
How to use:
<a-entity io3d-data3d="key:/key.gz.data3d.buffer; lightMapSaturation: 0.0"></a-entity>
How to test:
Thanks