[Unity Error correction] Too Many texture interpolators would is used for forwardbase

Source: Internet
Author: User

The error message in the Unity console is as follows:

Shader error in ' Custom/sky_shader ': Too Many texture interpolators would is used for Forwardbase pass at line 19


The reason for the error is that in the shader, additional UV variable information is defined in the structure input that is greater than or equal to 3.

Here is the shader input structure for the error

struct Input {
			float2 offset1;
			FLOAT2 Offset2;
			FLOAT2 Offset3;
			FLOAT4 Pos;
			Fixed4 color;
		};

The following is the corrected shader input structure

struct Input {
			float2 offset1;
			FLOAT2 Offset2;
			FLOAT4 Pos;
			Fixed4 color;
		};

So if you need to offset3 variable record information how to do it, what I learned is not a very good way, is to use Offset1 and offset2 to do changes instead of Offset3 do information recording processing.

In general Main_tex,bumpmap and Specmap can use the same UV set.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.