Browse Source

Fixing some wrong values in reflection probe

Panagiotis Christopoulos Charitos 10 years ago
parent
commit
4a998acb36
2 changed files with 4 additions and 4 deletions
  1. 2 2
      include/anki/scene/ReflectionProbe.h
  2. 2 2
      src/scene/ReflectionProbe.cpp

+ 2 - 2
include/anki/scene/ReflectionProbe.h

@@ -21,7 +21,7 @@ class ReflectionProbeComponent: public SceneComponent
 {
 public:
 	ReflectionProbeComponent(SceneNode* node)
-	:	SceneComponent(SceneComponent::Type::REFLECTION_PROBE, node)
+		: SceneComponent(SceneComponent::Type::REFLECTION_PROBE, node)
 	{}
 
 	static Bool classof(const SceneComponent& c)
@@ -37,7 +37,7 @@ class ReflectionProbe: public SceneNode
 
 public:
 	ReflectionProbe(SceneGraph* scene)
-	:	SceneNode(scene)
+		: SceneNode(scene)
 	{}
 
 	~ReflectionProbe();

+ 2 - 2
src/scene/ReflectionProbe.cpp

@@ -19,7 +19,7 @@ class ReflectionProbeMoveFeedbackComponent: public SceneComponent
 {
 public:
 	ReflectionProbeMoveFeedbackComponent(SceneNode* node)
-	:	SceneComponent(SceneComponent::Type::NONE, node)
+		: SceneComponent(SceneComponent::Type::NONE, node)
 	{}
 
 	Error update(SceneNode& node, F32, F32, Bool& updated) override
@@ -81,7 +81,7 @@ Error ReflectionProbe::create(const CString& name, F32 radius)
 
 		addComponent(frc, true);
 
-		m_frustums[i].setAll(toRad(45.0), toRad(45.0), 0.5, radius);
+		m_frustums[i].setAll(toRad(90.0), toRad(90.0), 0.5, radius);
 		m_frustums[i].resetTransform(trfs[i]);
 	}