Skip to content
This repository has been archived by the owner on Jun 14, 2022. It is now read-only.
/ BlockCgFX Public archive

Load and use .cgfx effect files with your c++ applications. Follows the standards of Cinder framework

Notifications You must be signed in to change notification settings

pixelnerve/BlockCgFX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Block CgFX
------------

Load CgFX effect files easily in to your applications

You will need to install Cg Toolkit from: http://developer.nvidia.com/object/cg_toolkit.html



Example:

V::CGFXManager cgManager;
V::ShaderCGFXRef shader0;

void setup()
{
	cgManager.init();
	shader0 = cgManager.loadEffectFromFile( "data/SSAOgame.cgfx" );
}


void draw()
{
	shader0.enable();
	shader0.setTextureParameter( "DepthSampler", depthTex.getId() );
	shader0.setParameter1f( "foo", 1 );
	shader0.setTechnique( "technique_name" );
	shader0.setPass();
	renderGeometry();
	shader0.resetPass();
	shader0.disable();
}

About

Load and use .cgfx effect files with your c++ applications. Follows the standards of Cinder framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published