90 CloudLayerPass->setSceneBlending(Ogre::SBT_TRANSPARENT_ALPHA);
91 CloudLayerPass->setCullingMode(Ogre::CULL_NONE);
92 CloudLayerPass->setLightingEnabled(
false);
93 CloudLayerPass->setDepthWriteEnabled(
false);
95 CloudLayerPass->setVertexProgram(
"SkyX_Clouds_VP");
98 CloudLayerPass->setFragmentProgram(
"SkyX_Clouds_LDR_FP");
102 CloudLayerPass->setFragmentProgram(
"SkyX_Clouds_HDR_FP");
106 CloudLayerPass->createTextureUnitState(
"Clouds.png")->setTextureAddressingMode(Ogre::TextureUnitState::TAM_WRAP);
107 CloudLayerPass->createTextureUnitState(
"CloudsNormal.png")->setTextureAddressingMode(Ogre::TextureUnitState::TAM_WRAP);
108 CloudLayerPass->createTextureUnitState(
"CloudsTile.png")->setTextureAddressingMode(Ogre::TextureUnitState::TAM_WRAP);
140 ->setNamedConstant(
"uWindDirection", WindDirection_, 1, 2);
227 ->getTechnique(0)->createPass());
231 bool changeOrder =
false;
257 return NewCloudLayer;
266 delete (*CloudLayersIt);
277 delete (*CloudLayersIt);
287 mCloudLayers.at(k)->_registerCloudLayer(
static_cast<Ogre::MaterialPtr
>(
289 ->getTechnique(0)->createPass());
299 (*CloudLayersIt)->_unregister();
308 (*CloudLayersIt)->_unregister();
316 (*CloudLayersIt)->_updateInternalPassParameters();