The problem of grid black line in model after "Unity" turns on MSAA

Source: Internet
Author: User
Tags pow

Problem: The model of the role, after the MSAA is turned on, some perspective will appear the problem of the model grid black line.

After many attempts, the final question is locked in the calculation of the POW function in shader.

The efficiency of the POW function is inefficient, each time the operation will be lost precision, which will lead to some boundary values, such as a vector click operation close to 0 or 1 of the value, in the calculation process due to the loss of precision more serious problem of numerical cross-over.

The curve solution is to offset the loss of precision in the operation by adding a small floating-point number to the parameter of the operation +/-.

As to why this problem occurs after the MSAA is opened, it is necessary to study the specific implementation of MSAA.

The problem of grid black line in model after "Unity" turns on MSAA

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.