Ignore:
Timestamp:
04/28/06 19:49:56 (19 years ago)
Author:
igarcia
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/src/LBBCBillboardCloudIndirectTextureViewMode.cpp

    r821 r861  
    164164        Ogre::GpuProgramParametersSharedPtr fragParams; 
    165165         
    166         fragParams = mBillboardCloudPointClusters->getSubEntity(mCurrentTexture % mBillboardCloudPointClusters->getNumSubEntities())->getMaterial()->getTechnique(0)->getPass(0)->getFragmentProgramParameters(); 
    167         fragParams->setNamedConstant("textureSize", (Ogre::Real)mTextureSize); 
    168         mBillboardCloudPointClusters->getSubEntity(mCurrentTexture % mBillboardCloudPointClusters->getNumSubEntities())->getMaterial()->reload(); 
    169          
    170166        if (mDebugTextureAtlasGeneration) 
    171167        { 
     
    403399 
    404400        mTextureAtlas = IMG::TextureAtlasPtr( new IMG::TextureAtlas() ); 
    405         mTextureAtlas->create("IndirectTextureAtlas", mTextureAtlasSize, mTextureAtlasSize, mSrcPixelFormat, mCamera, Ogre::ColourValue(0.0, 0.0, 0.0)); 
     401        mTextureAtlas->create("IndirectTextureAtlas", mTextureAtlasSize, mTextureAtlasSize, mSrcPixelFormat, mCamera, Ogre::ColourValue(0.0, 0.0, 0.0, 0.0)); 
    406402        mTextureAtlas->setTextureAtlasSceneNode(mBillboardCloudPointClustersSceneNode); 
    407403        Ogre::MaterialPtr materialPtr1 = Ogre::MaterialManager::getSingleton().create("IndirectTextureAtlasMaterial", Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME);          
     
    415411 
    416412        mClusterTexture = IMG::TexturePtr( new IMG::Texture() ); 
    417         mClusterTexture->create("ClusterIndirectTexture", mTextureSize, mTextureSize, mSrcPixelFormat, mCamera, Ogre::ColourValue(0.0, 0.0, 0.0)); 
     413        mClusterTexture->create("ClusterIndirectTexture", mTextureSize, mTextureSize, mSrcPixelFormat, mCamera, Ogre::ColourValue(0.0, 0.0, 0.0, 0.0)); 
    418414        Ogre::MaterialPtr materialPtr = Ogre::MaterialManager::getSingleton().create("IndirectTextureMaterial", Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME);                        
    419415        if (!mDebugTextureAtlasGeneration) 
Note: See TracChangeset for help on using the changeset viewer.