|
@@ -68,7 +68,7 @@ module BABYLON {
|
|
this._ratio = ratio;
|
|
this._ratio = ratio;
|
|
|
|
|
|
// Register the G Buffer component to the scene.
|
|
// Register the G Buffer component to the scene.
|
|
- let component = scene._getComponent(SceneComponentConstants.NAME_GEOMETRYBUFFER) as GeometryBufferRendererSceneComponent;
|
|
|
|
|
|
+ let component = scene._getComponent(SceneComponentConstants.NAME_GEOMETRYBUFFERRENDERER) as GeometryBufferRendererSceneComponent;
|
|
if (!component) {
|
|
if (!component) {
|
|
component = new GeometryBufferRendererSceneComponent(scene);
|
|
component = new GeometryBufferRendererSceneComponent(scene);
|
|
scene._addComponent(component);
|
|
scene._addComponent(component);
|