Implement dynamic LightMap (DL) in OpenGL

xiaoxiao2021-03-06  25

Lightmap is a texture (usually grayscale), each of which represents the intensity of the light, expands it with the texture of the object with the texture of the object, can achieve realistic light and shadow effect. The general LightMap is a static grayscale image, so its light and shadow effect is static; if the light source is determined according to the distance of the light source to the surface of the object, thereby generating lightmap in real time can be very real-time. Implement dynamic light shadow effect.

Snapshot: (the ball represents the light source)

Program download:

DynamicLightmap.rar

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

New Post(0)