Visibility and fog of war
The main character's field of view is re-repainted with a beam of light in each square, and the two values are used for a small texture, and all materials are painted brightly, bluishly, and black with the texture.
- Category
- 3D game fundamentals
Technical terms · Fog of war (visibility grid) · Line of sight per cell · DataTexture (R = visible, G = explored) · onBeforeCompile material patch