Merge fixes
This commit is contained in:
parent
ee54ce5d73
commit
cf8a83e1e3
|
@ -10,7 +10,7 @@
|
|||
#include "DynamicArray.h"
|
||||
|
||||
const float MAX_HP = 100.0f;
|
||||
const float BASIC_SPEED = 30.0f * 0.2f;
|
||||
const float BASIC_SPEED = 10.0f;
|
||||
|
||||
namespace GameLogic
|
||||
{
|
||||
|
|
|
@ -20,7 +20,6 @@ namespace Oyster
|
|||
std::vector<Definitions::Pointlight> Lights;
|
||||
float deltaTime;
|
||||
int MostModel;
|
||||
float FoV;
|
||||
#ifdef _DEBUG
|
||||
Model::Model* cube;
|
||||
Model::Model* sphere;
|
||||
|
@ -89,7 +88,6 @@ namespace Oyster
|
|||
void API::SetProjection(const Math::Float4x4& projection)
|
||||
{
|
||||
Projection = projection;
|
||||
FoV = 2 * std::atanf(1/projection.m[1][1]);
|
||||
}
|
||||
|
||||
void API::SetView(const Math::Float4x4& view)
|
||||
|
@ -101,11 +99,11 @@ namespace Oyster
|
|||
{
|
||||
if(Lights.size())
|
||||
{
|
||||
Render::DefaultRenderer::NewFrame(View, Projection, &Lights[0], (int)Lights.size(), FoV);
|
||||
Render::DefaultRenderer::NewFrame(View, Projection, &Lights[0], (int)Lights.size());
|
||||
}
|
||||
else
|
||||
{
|
||||
Render::DefaultRenderer::NewFrame(View, Projection, NULL, 0, FoV);
|
||||
Render::DefaultRenderer::NewFrame(View, Projection, NULL, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -56,7 +56,6 @@ namespace Oyster
|
|||
|
||||
Definitions::LightConstants lc;
|
||||
lc.InvProj = Projection.GetInverse();
|
||||
lc.Pixels = Core::resolution;
|
||||
lc.Lights = numLights;
|
||||
lc.View = View;
|
||||
lc.Proj = Projection;
|
||||
|
|
|
@ -13,7 +13,7 @@ namespace Oyster
|
|||
class DefaultRenderer
|
||||
{
|
||||
public:
|
||||
static void NewFrame(Oyster::Math::Float4x4 View, Oyster::Math::Float4x4 Projection, Definitions::Pointlight* Lights, int numLights, float Fov);
|
||||
static void NewFrame(Oyster::Math::Float4x4 View, Oyster::Math::Float4x4 Projection, Definitions::Pointlight* Lights, int numLights);
|
||||
static void RenderScene(Model::Model* models, int count, Math::Matrix View, Math::Matrix Projection, float DeltaTime = 0);
|
||||
static void EndFrame();
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue