Hi,
I'm currently having some issues with my shader.
It's a very complex shader (basically replacing and advancing the standard shader for our company-workflow).
Whenever I click on an object in the scene view that has the shader applied to a material, I get the error:
"Error assigning cubemap texture to 2D texture property '_MainTex': Dimensions must match
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)"
The assigned Texture is a standard 2D texture.
The node _MainTex is created in a shader function, and only allows Texture 2D (I tried changing it to automatic, but that didn't help either). This node then feeds another shader funtion with a Texture 2D input.
Creating a new material doesn't help, too (to eliminate the possibility of old material properties that are causing this).
I should add, that I've written a custom editor, using the TextureWithHDRColor property. But even when I disable the property completely, I still get the error, so I guess that's not the problem.
Versions:
Unity 2017.3.0p2
ASE 1.4.4 (1.4.3 produced the same error, maybe even earlier, I'm not sure)
Any help would be appreciated.
Thanks,
Lars