Direct3D9 Learning History 2: Lights in Direct3D9

xiaoxiao2021-03-06  19

Direct3D Supports Three Light Source Models: Directional Lights, Point Lights, and Spot Lights. Light Sources Emit Three Types of Light: Ambient Light, Diffuse Light, And Specular Light.

Direct3D supports three light source models: direction light source, point source, and spotlight light source. These light sources can emit three light: ambient light, diffuse reflected light, and mirror reflected light.

The Material of A Surface Defines How Light Interacts with The Sur-Face That It Strikes (That IS, How Much Light Is Reflected Andabsorbed, Thus Determining The Color of The Surface).

A surface material is defined as what effect does a bunch of light passing through this surface. (How many light is reflected and how much light is absorbed to depend on the color of the surface)

Vertex normals are used to define the orientation of a vertex. They are used so that Direct3D can determine the angle at which a ray of light strikes the vertex. In some cases, the vertex normal is equal to the normal of the triangle that it forms , But this is not usually The Case When Approximating Smooth Surfaces (EG, Spheres, Cylinders).

The vertex method is often defined as a vertex direction. Direct3D uses them to determine the angle of a bunch of light through the vertex. In some cases, the vertex method is equal to the method of the triangular surface it consists of, but this situation is not often consistent on the surface. (Such as sphere, loop)

转载请注明原文地址:https://www.9cbs.com/read-40442.html

New Post(0)