SO3Engine
|
SO3DeferredLightMaterialGenerator.cpp
Go to the documentation of this file.
30SDeferredLightMaterialGenerator::SDeferredLightMaterialGenerator(const Ogre::String& typeName) : SMaterialGenerator<SDeferredLightPermutation, Ogre::uint32>(Ogre::String("Lights/") + typeName)
36SDeferredLightMaterialGenerator::SDeferredLightMaterialGenerator() : SMaterialGenerator<SDeferredLightPermutation, Ogre::uint32>("")
44Ogre::MaterialPtr SDeferredLightMaterialGenerator::GenerateTemplateMaterial(SGBuffer* gbuffer, Ogre::uint32 permutationValue)
49 Ogre::MaterialPtr matPtr = Ogre::MaterialManager::getSingleton().create(matName, Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME);
65 tu->setCompositorReference("SO3/Deferred/Compositor/GBuffer/"+ gbuffer->GetName() , "mrt_output", i);
108 //Ogre::LogManager::getSingleton().getDefaultLog()->logMessage(programSource, Ogre::LML_CRITICAL);
113 Ogre::HighLevelGpuProgramPtr ptrProgram = Ogre::HighLevelGpuProgramManager::getSingleton().createProgram(programName, Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, "cg", Ogre::GPT_VERTEX_PROGRAM);
143 //Ogre::LogManager::getSingleton().getDefaultLog()->logMessage(programSource, Ogre::LML_CRITICAL);
148 Ogre::HighLevelGpuProgramPtr ptrProgram = Ogre::HighLevelGpuProgramManager::getSingleton().createProgram(programName, Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, "cg", Ogre::GPT_FRAGMENT_PROGRAM);
virtual Ogre::MaterialPtr GenerateTemplateMaterial(SGBuffer *gbuffer, Ogre::uint32 permutationValue)
Definition SO3DeferredLightMaterialGenerator.cpp:44
virtual ~SDeferredLightMaterialGenerator()
Definition SO3DeferredLightMaterialGenerator.cpp:40
@ SO3_LP_DEBUG
Definition SO3DeferredLightPermutation.h:43
@ SO3_LP_CAST_SHADOWS
Definition SO3DeferredLightPermutation.h:42
Definition SO3GBuffer.h:37
const Ogre::String materialBaseName
Base name of materials generated by this.
Definition SO3MaterialGenerator.h:50
Definition OgreNewt_Debugger.h:21
Definition SO3DataScol.h:38
Generated by 1.9.8