+ unsigned int tid;
+ float aspect;
+ if(tex) {
+ tid = tex->id;
+ aspect = (float)tex->width / tex->height;
+ } else {
+ tid = 0;
+ aspect = 1.0f;
+ }
+ overlay(tid, aspect, alpha);
+}
+
+void vignette(float r, float g, float b, float offs, float sharp)
+{
+ glUseProgram(sdr_vgn);
+ if(vgn_uloc_color) {
+ glUniform3f(vgn_uloc_color, r, g, b);
+ }
+ if(vgn_uloc_offs) {
+ glUniform1f(vgn_uloc_offs, offs);
+ }
+ if(vgn_uloc_sharp) {
+ glUniform1f(vgn_uloc_sharp, sharp);
+ }
+ overlay(0, 1.0, 1.0);