I have some textures. When I try to open texture compiling shaders and end of the compiling I am getting error such as MaterialEditorStats:Error: Error [SM4] shader uses 23 samplers exceeding the limit of 16
I am Using MacBook Pro version 10.10.5 and graphic card is AMD Radeon R9 M370X 2048 MB.
From what you describe you are using open GL and not DirectX11. DirectX11 allows for Shader Model 5 which will allow for shared texture samples. Right now you are exceeding the texture samples that are available in your material.
I am linking you to our documentation on this :
Materials with Many Textures
Materials can use up to 128 unique textures by making use of new ‘shared’ texture samplers. These are set on a TextureSample node by setting the SamplerSource property. Previously, you could only use up to 13 textures.
This is a really important improvement for layered materials like terrain, high quality character materials, and more advanced forward shading materials.
Unfortunately Mac’s do not support DirectX11 only OpenGL. Even updating and running a parallel would not solve this.
DirectX 11 and consoles support 128 textures at once, but the OpenGL rendering path (on Windows or Mac) is still limited to 13 textures per material. Shaders will fail to compile for GL if they exceed this limit.