What is wrong here

Hey I’m making a game that has a big map and I need the lights to switch between details when within a radius I have this for the code https://playcanvas.com/editor/code/843141?tabs=59580428 but its not working does anyone know how to fix it?

4 posts were merged into an existing topic: Error: Fragment shader texture image units count exceeds MAX_TEXTURE_IMAGE_UNITS(16)