Programbling
  • Home
  • Tools
  • Games
  • Reference
  • Links
Sign in Subscribe

opengl

A collection of 1 post
2D light and shadow using offscreen rendering
rogue

2D light and shadow using offscreen rendering

Shadows are drawn first in white and then lights are drawn in black. Once we switch to the custom shader, the grayscale value of each pixel becomes the alpha value of a black pixel that will be drawn on top of the background.
28 Oct 2019 4 min read
Page 1 of 1
Programbling © 2025
Powered by Ghost