Yimin-zhou / CG-FinalGame

A 3D shooter game developed in OpenGL for TUD CG course
0 stars 0 forks source link

Illumination #1

Closed DizzyMizLizzy closed 1 year ago

DizzyMizLizzy commented 1 year ago

to increase realism, you should include light sources and apply shadow mapping [Shading Mapping Practical]. The shadows will probably look pretty rough at first, so add filtering (like PCF) [Shadow Mapping Practical] to make them look better. Implement at least one special light source which emits light only inside a cone using a light falloff [Shadow Mapping]. Integrate a mechanism to determine whether a player is receiving light from this cone (i.e., is seen by the monster or in recharge zone) and integrate it in your game.