|
|
@ -100,11 +100,7 @@ namespace fx
|
|
|
|
mPointLightBuffer = std::move(buffer);
|
|
|
|
mPointLightBuffer = std::move(buffer);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static std::string getStructDefinition()
|
|
|
|
static const std::string& getStructDefinition() { return sDefinition; }
|
|
|
|
{
|
|
|
|
|
|
|
|
static std::string definition = UniformData::getDefinition("_omw_data");
|
|
|
|
|
|
|
|
return definition;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void setDefaults(osg::StateSet* stateset) override;
|
|
|
|
void setDefaults(osg::StateSet* stateset) override;
|
|
|
|
|
|
|
|
|
|
|
@ -275,6 +271,8 @@ namespace fx
|
|
|
|
UniformData mData;
|
|
|
|
UniformData mData;
|
|
|
|
bool mUseUBO;
|
|
|
|
bool mUseUBO;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static std::string sDefinition;
|
|
|
|
|
|
|
|
|
|
|
|
std::shared_ptr<SceneUtil::PPLightBuffer> mPointLightBuffer;
|
|
|
|
std::shared_ptr<SceneUtil::PPLightBuffer> mPointLightBuffer;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|