All pastes #980096 Raw Edit

Jemand

public cpp v1 · immutable
·published 2008-04-10 20:01 UTC
rendered paste body
// HLSLfloat4 test_ps( in float2 UV : TEXCOORD0 ) : COLOR{	float4 RGBA = { 1,0,0,1 };	return RGBA;}// .programfragment_program test_PS hlsl{	source Video.hlsl	entry_point test_ps	target ps_2_0}// C++Ogre::MaterialPtr pMat = m_pVideo->getMaterial();Ogre::Pass* pPass = pMat->getTechnique( 0 )->createPass();pPass->setVertexProgram( "Webcam_VS" ); // Webcam_VS is a dummy vertex shader that does nothingpPass->setFragmentProgram( "test_PS" );pMat->compile();