OpenGL 2D Lighting & Shadows Engine HD
This is a demonstration of my lighting and shadows "engine." This was programmed in Java using the LWJGL library for input and OpenGL. I used JBox2D for the physics. I will create a tutorial soon. Try it in your browser: (WebGL port) http://jacobbrunson.me/lights For each light: - Enable stencil buffer - For each block: - - Calculate & render shadow to STENCIL BUFFER - Disable stencil buffer - Draw lighting (using pixel shader) where stencil is empty For each block (again): - Draw block Source: https://github.com/jacobbrunson/BasicLighting/ LWJGL: http://www.lwjgl.org/ JBox2d: http://www.jbox2d.org/ Special thanks to quew8 and Oysi93.
Похожие видео
Показать еще