5# include <OgreVector.h>
13 Ogre::Vector3 sunBelow {0.0f, 0.0f, 0.0f};
14 Ogre::Vector3 skyBelow {0.0f, 0.0f, 0.0f};
15 Ogre::Vector3 sunDown {0.0f, 0.0f, 1.0f};
16 Ogre::Vector2 rippleDir {1.0f, 0.0f};
17 Ogre::Vector4 mix {0.25f, 40.0f, 1.0f, 0.0f};
26inline void ApplySeabedLight(Ogre::Pass* pass,
const SeabedLight& light)
28 if (!pass || !pass->hasFragmentProgram())
30 auto fp = pass->getFragmentProgramParameters();
31 auto set = [&](
const char* name,
const auto& value) {
32 if (fp->_findNamedConstantDefinition(name,
false))
33 fp->setNamedConstant(name, value);
35 set(
"sunBelow", light.sunBelow);
36 set(
"skyBelow", light.skyBelow);
37 set(
"sunDown", light.sunDown);
38 set(
"rippleDir", light.rippleDir);
39 set(
"seabedMix", light.mix);
Visualization utilities.
Definition VisualDomain.h:12