[SOLVED] Error: Fragment shader texture image units count exceeds MAX_TEXTURE_IMAGE_UNITS(16)


Here Is A Screen Shot Of The Error

So at what point do you get the error? I’m not sure I was that in the video?

To see errors, open dev console … press F12 perhaps as a shortcut on windows.

I think I know what the error is … I fixed it today I think … so should come out in the next engine release. Are you by any chance turning off a light at that point.

The error occurs when you try to leave by either hitting escape or start on controller
And no I’m not trying to toggle a light

is there a light in the scene that gets destroyed?

I’ll try tomorrow, thanks for the repro steps.

yes that is the scene I needed cluster lighting for although I’ve realised I’m not very bright because I said that it doesn’t toggle a light but it does because it changes out the root.

also when will the next version of the editor release?

maybe in about two weeks.

You use that line to enabled clustered lights. Try adding this line to it as well to turn off shadows to see if that fixes it.

    app.scene.layers.clusteredLightingShadowsEnabled = false;

The thing the reason I wanted cluster lighting is for shadows

I know. This is a test to isolate the bug.

Ok

It works just fine now but I would like to have shadows also it’s lagging a lot

yeah that points to that bug I fixed today.

at least getting this out will take way longer than 2 weeks

1 Like

Hey @mvaligursky Do You Know If The Next Update Will Release Soon

This or next week is the best guess, but the specific date is not yet confirmed.

Ok Thanks For The Update

Have you tested this with the latest engine release?

Yes it works exactly as intended

2 Likes