geckosoft / OpenRA

An open-source implementation of the Red Alert engine using .NET/mono and OpenGL. Runs on Windows, Linux and OSX. Grab the latest at http://open-ra.org Bugs at http://red-bull.ijw.co.nz:3690/OpenRA/
http://open-ra.org
GNU General Public License v3.0
1 stars 0 forks source link

Redo the sniper visor rendering #33

Open geckosoft opened 13 years ago

geckosoft commented 13 years ago

Currently it renders a 2048x2048 png

Split it up in 1) draw the blackness using a small black box 2) then draw the visor in the remaining space

chrisforbes commented 13 years ago

1) Clip the renderer to avoid drawing in the blackness at all 2) Draw the visor in the remaining space.