[SM5] error X4510 maximum samplers reached (16), only 14 active in material
Stats say that I am using more than 16 texture samplers, but, having counted them by hand I can only find 14 samplers. Are there any other parameters that consume sampler slots? are there hidden ones that I've missed?
When I remove a sampler in one of the layers it compiles just fine, meaning that I've got 17 samplers in there, which in turn means that there's 3 that I cannot find.
When I remove the "incandescent cloth" material layer, it says I have 14 samplers active, while, at that point it should be 11.
The samplers in sequence are the following:
Steel, 1 sampler (RGBA)
With that said, I must be blind, or something strange is going on.
Below you can see the spagetti of everything, all samplers are highlighted with a red border.
(The warning above the sampler error can be disregarded as it goes away when the error is resolved)
Thank you in advance.
asked Oct 12 '15 at 05:36 PM in Rendering
Yep various code features like lightmaps use samplers. Note that you can use the shared samplers to get past the 16 limit (up to 128 unique textures).
answered Oct 12 '15 at 11:44 PM
Answering my own question. 3 Samples are used for lighting information that are otherwise hidden.
answered Oct 12 '15 at 10:02 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here