Slide 19
Slide 19 text
HDR Cubemap
Config config = session.getConfig();
Config.setLightEstimationMode[LightEstimationMode,ENVIRONMENTAL_HDR];
Session,configure(config);
// Get light estimation from frame
LightEstimate lightEstimate = frame.getLightEstimate();
If (lightEstimate.getState() != LightEstimate_state.VALID) { return; }
Image[] lightmaps = lightEstimate.getHdrCubeMap();
for (int i = 0; i < lightmaps.length; ++1) {
app.uploadToTexture(i, lightmaps[i]);
}