data-lighting
<mr-app data-lighting="enabled:true; shadows:true; color:#faa; intensity:0.2; radius:4;"> ... </mr-app>
Lighting state can be attached to an mr-app
using data-lighting
:
data-lighting
Specifies the global lighting conditions.
enabled
: enables or disables global lighting is enabled- default:
true
- default:
shadows
: enables or disables shadows- default:
true
- note: always disabled on mobile for performance reasons
- default:
color
: the color of the global lighting- default:
#fff
- default:
intensity
: how bright the lighting is- default:
1
- default:
radius
: the shadow radius- default:
5
- default: