U3d Shader Study Notes 1

Source: Internet
Author: User

The important reason that motivates me to learn shader is that I want to understand the mechanism of 3D rendering in depth, and on this basis, we can flexibly achieve a balance of effect and performance, and develop a VR application with good experience.

Because the VR application experience is good or bad, directly by the game's frame rate, and the game frame rate is affected by the time spent rendering a frame, so how to improve rendering time, and can get the desired effect, must have a deep understanding of the shader or rendering mechanism.

First, in the u3d, what is shader? Shader is the "shader", we can see the colorful 3D screen, it is thanks to it. The concepts associated with shader in u3d and their relationship to shader are as follows:

When you close your eyes, or turn off the lights in the room, the object in front of you is invisible, but the object is still there, it will not disappear because you do not see it, and from this point of view, the object has its own properties, as in the Meshfilter part, the object has its own "skeleton", At the same time, this object also has its own surface material, so, it can be said that the object's own property is "skeleton" + "surface material".

It is because different objects have their own "skeleton" and "surface material", so that when we turn on the lights, we will see different objects.

As we look at the world around us, we see many of the things that are present:

1, the same scene, when the light is stronger, the object is also brighter, when the color of the light changes, we see the object surface color has also changed;

2, under the same scene, under the same lamp, some objects surface is smooth, there are obvious high light, and some objects surface is rough, looks very soft;

And so many different visual images ...

So the last thing we see is the reflection of light coming into our eyes after the light hits the surface of the object. Specifically, the reflected light from each point on the object enters our eyes and, through the combined treatment of our brains, forms the image of an object.

In fact, in summary, it can be thought that: from the microscopic point of view, the calculation of the object of the reflection of the light color and strength is shader to do things

U3d Shader Study Notes 1

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.