You can move this code into the TextureActive example. Note that we use ZIM Pizzazz to get the icons so you will also need to import that:
import zim from "https://zimjs.org/cdn/016/zim_three";
import piz from "https://zimjs.org/cdn/016/zim_pizzazz";