Skip to content

Commit

Permalink
partial revert 0ab4584 + fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
xrSimpodin committed Jun 23, 2024
1 parent 0b16bef commit 9e1f76e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ void dx103DFluidObstacles::ProcessDynamicObstacles(const dx103DFluidData& FluidD
box.getradius(size);

// Traverse object database
//g_SpatialSpace->q_box(m_lstRenderables,
// 0, // ISpatial_DB::O_ORDERED,
// STYPE_RENDERABLE, center, size);
g_SpatialSpace->q_box(m_lstRenderables,
0, // ISpatial_DB::O_ORDERED,
STYPE_RENDERABLE, center, size);

// Determine visibility for dynamic part of scene
for (u32 i = 0; i < m_lstRenderables.size(); ++i)
Expand Down
2 changes: 0 additions & 2 deletions ogsr_engine/xrGame/Level.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@
#include "physicobject.h"
#endif

#include <execution>

#include "LevelDebugScript.h"
#include "physicobject.h"
#include "UIGameSP.h"
Expand Down
2 changes: 1 addition & 1 deletion ogsr_engine/xr_3da/IGame_Persistent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ void IGame_Persistent::GrassBendersUpdateAnimations()
grass_shader_data.time[idx] += Device.fTimeDelta * grass_shader_data.speed[idx];

// Perlin Noise
float curve = std::clamp(PerlinNoise1D->GetContinious(grass_shader_data.time[idx]) + 0.5f, 0.f, 1.f) * -1.0;
float curve = std::clamp(PerlinNoise1D->GetContinious(grass_shader_data.time[idx]) + 0.5f, 0.f, 1.f) * -1.0f;

// Intensity using Perlin
grass_shader_data.dir[idx].w = curve * grass_shader_data.str_target[idx];
Expand Down
2 changes: 1 addition & 1 deletion ogsr_engine/xr_3da/IGame_Persistent.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class ENGINE_API IGame_Persistent : public DLL_Pure, public pureAppStart, public
xr_set<CPS_Instance*> ps_active, ps_destroy;
xr_vector<CPS_Instance*> ps_needtoplay;

enum GrassBenders_Anim
enum GrassBenders_Anim : s8
{
BENDER_ANIM_EXPLOSION = 0,
BENDER_ANIM_DEFAULT = 1,
Expand Down

0 comments on commit 9e1f76e

Please sign in to comment.