Panagiotis Christopoulos Charitos 8 rokov pred
rodič
commit
8e80197411

+ 1 - 1
shaders/Volumetric.frag.glsl

@@ -143,7 +143,7 @@ void main()
 		uint slightCount = u_lightIndices[idxOffset++];
 		uint slightIdx = idxOffset;
 
-		for(float factor = start; factor < 1.0; factor += dist)
+		for(float factor = start; factor <= 1.0; factor += dist)
 		{
 			float zMedian = mix(kNear, kFar, factor);
 

+ 2 - 2
src/anki/physics/PhysicsPlayerController.cpp

@@ -10,12 +10,12 @@ namespace anki
 {
 
 CharacterControllerManager::CharacterControllerManager(PhysicsWorld* world)
-	: CustomPlayerControllerManager(world->getNewtonWorld())
+	: dCustomPlayerControllerManager(world->getNewtonWorld())
 	, m_world(world)
 {
 }
 
-void CharacterControllerManager::ApplyPlayerMove(CustomPlayerController* const controller, dFloat timestep)
+void CharacterControllerManager::ApplyPlayerMove(dCustomPlayerController* const controller, dFloat timestep)
 {
 	ANKI_ASSERT(controller);
 

+ 4 - 4
src/anki/physics/PhysicsPlayerController.h

@@ -6,7 +6,7 @@
 #pragma once
 
 #include <anki/physics/PhysicsObject.h>
-#include <CustomPlayerControllerManager.h>
+#include <dCustomPlayerControllerManager.h>
 
 namespace anki
 {
@@ -15,7 +15,7 @@ namespace anki
 /// @{
 
 /// The implementation of the Newton manager.
-class CharacterControllerManager : public CustomPlayerControllerManager
+class CharacterControllerManager : public dCustomPlayerControllerManager
 {
 public:
 	PhysicsWorld* m_world;
@@ -26,7 +26,7 @@ public:
 	{
 	}
 
-	void ApplyPlayerMove(CustomPlayerController* const controller, dFloat timestep);
+	void ApplyPlayerMove(dCustomPlayerController* const controller, dFloat timestep);
 };
 
 /// Init info for PhysicsPlayerController.
@@ -75,7 +75,7 @@ public:
 	}
 
 private:
-	CustomPlayerController* m_newtonPlayer = nullptr;
+	dCustomPlayerController* m_newtonPlayer = nullptr;
 	Transform m_trf = Transform::getIdentity();
 	Bool m_updated = true;
 

+ 1 - 1
thirdparty

@@ -1 +1 @@
-Subproject commit 7c8d2e06f5bfe4fb48c14132c1b6ec97d58d1ec3
+Subproject commit 40d7763bfa5b7babad7ad969e0dadddebff930f4