water ripple placement updated
This commit is contained in:
@@ -674,7 +674,7 @@ void EditorComponent::Update()
|
||||
if (wiInputManager::GetInstance()->down(VK_LBUTTON))
|
||||
{
|
||||
// if water, then put a water ripple onto it:
|
||||
wiRenderer::PutWaterRipple(wiHelper::GetOriginalWorkingDirectory() + "images/ripple.png", hovered.position, wiRenderer::GetWaterPlane());
|
||||
wiRenderer::PutWaterRipple(wiHelper::GetOriginalWorkingDirectory() + "images/ripple.png", hovered.position);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
@@ -1748,7 +1748,8 @@ void wiRenderer::PutDecal(Decal* decal)
|
||||
{
|
||||
GetScene().GetWorldNode()->decals.push_back(decal);
|
||||
}
|
||||
void wiRenderer::PutWaterRipple(const string& image, const XMFLOAT3& pos, const wiWaterPlane& waterPlane){
|
||||
void wiRenderer::PutWaterRipple(const string& image, const XMFLOAT3& pos)
|
||||
{
|
||||
wiSprite* img=new wiSprite("","",image);
|
||||
img->anim.fad=0.01f;
|
||||
img->anim.scaleX=0.2f;
|
||||
|
||||
@@ -309,7 +309,7 @@ public:
|
||||
static void UpdateImages();
|
||||
static void ManageImages();
|
||||
static void PutDecal(Decal* decal);
|
||||
static void PutWaterRipple(const string& image, const XMFLOAT3& pos, const wiWaterPlane& waterPlane);
|
||||
static void PutWaterRipple(const string& image, const XMFLOAT3& pos);
|
||||
static void ManageWaterRipples();
|
||||
static void DrawWaterRipples(GRAPHICSTHREAD threadID);
|
||||
static void SetGameSpeed(float value){GameSpeed=value; if(GameSpeed<0) GameSpeed=0;};
|
||||
|
||||
@@ -527,7 +527,7 @@ namespace wiRenderer_BindLua
|
||||
{
|
||||
XMFLOAT3 pos;
|
||||
XMStoreFloat3(&pos, v->vector);
|
||||
wiRenderer::PutWaterRipple(name, pos, wiWaterPlane());
|
||||
wiRenderer::PutWaterRipple(name, pos);
|
||||
}
|
||||
else
|
||||
wiLua::SError(L, "PutWaterRipple(String imagename, Vector position) argument is not a Vector!");
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace wiVersion
|
||||
// minor features, major updates
|
||||
const int minor = 9;
|
||||
// minor bug fixes, alterations, refactors, updates
|
||||
const int revision = 17;
|
||||
const int revision = 18;
|
||||
|
||||
|
||||
long GetVersion()
|
||||
|
||||
Reference in New Issue
Block a user