1
vote
How to clip multiple tiled textures to polygon in Webgl / opengl
Quick idea:
render platforms color to screen quad
render mesh and platforms to screen quad, but as a mask. For example mesh is white, rest is black.
in another pass sample these textures and if mask ...
Only top scored, non community-wiki answers of a minimum length are eligible