I created a room model in Blender and baked Ambient Occlusion using a dedicated UV set.
I then created a new material with the baked AO image as a texture and applied it to the whole model. Visualization in Blender is correct.
I would like to visualize my model using A-Frame with both the diffuse textures (on TEXCOORD_0) both the AO Map contribution (on TEXCOORD_1).
The code I currently use is this:
<a-scene stats>
<a-assets>
<a-asset-item id="roomLM-texture" src="models/AOMap.jpg"></a-asset-item>
<a-asset-item id="room-model" src="models/edificio6.gltf"></a-asset-item>
</a-assets>
<a-sky color="#222"></a-sky>
<a-entity id="room-instance" gltf-model="#room-model" material="ambientOcclusionMap:#roomLM-texture; color:#fff;"></a-entity>
</a-scene>
It is able to load and visualize correctly the model with the diffuse textures, but no AO is shown. What am I missing here?
Thanks for any help!