This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Kudos to armadilly | |
fbo.begin(); | |
{ | |
///pre-multiply background color of the fbo for correct blending! | |
ofClear(ofColor(fboBgColor * (fboBgColor.a / 255.) , fboBgColor.a)); | |
//Set this blending mode for anything you draw INSIDE the fbo | |
glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ONE_MINUS_SRC_ALPHA); | |
//your draw code here! | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#region usings | |
using System; | |
using System.ComponentModel.Composition; | |
using System.Runtime.InteropServices; | |
using SlimDX; | |
using SlimDX.Direct3D9; | |
using VVVV.Core.Logging; | |
using VVVV.PluginInterfaces.V1; | |
using VVVV.PluginInterfaces.V2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//@author: vvvv group | |
//@help: this is a very basic template. use it to start writing your own effects. if you want effects with lighting start from one of the GouraudXXXX or PhongXXXX effects | |
//@tags: | |
//@credits: | |
// -------------------------------------------------------------------------------------------------- | |
// PARAMETERS: | |
// -------------------------------------------------------------------------------------------------- | |
//transforms |