About W component of tangent

Source: Internet
Author: User

/** Sets whether to store tangent space parity in the W of a 4-component tangent or not.
@ Remarks
The default element format to use is vet_float3 which is enough to accurately
Deal with tangents that do not involve any texture coordinate locking ing.
If you wish to allow UV indexing ing in your model, you must enable 4-component
Tangents using this method, and the 'W' co-ordinate will be populated
With the parity of the triangle (+ 1 or-1), which will allow you to generate
The bitangent properly.
@ Param enable true to enable 4-component tangents (default false). If you enable
This, you will probably also want to enable mirror splitting (see setsplitmirrored ),
And your shader must understand how to deal with the parity.
*/
Void setstoreparityinw (bool enabled) {mstoreparityinw = enabled ;}

 

4-The W of component is the tangent direction used to store and process image UV, which must be matched in the shader.

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.