Index: samples/openglui/src/openglui_canvas_tests.dart |
diff --git a/samples/openglui/src/openglui_canvas_tests.dart b/samples/openglui/src/openglui_canvas_tests.dart |
index 66c848590fd6dcfc0f21b7f21aecde31277d82d2..b9b394704b5abc4a7c08630624e7e5cae7353b89 100644 |
--- a/samples/openglui/src/openglui_canvas_tests.dart |
+++ b/samples/openglui/src/openglui_canvas_tests.dart |
@@ -1022,7 +1022,7 @@ class RayTracer { |
+ (thing.surface.specular(pos) * scolor); |
} |
}; |
- return scene.lights.reduce(Color.defaultColor, addLight); |
+ return scene.lights.fold(Color.defaultColor, addLight); |
} |
render(Scene scene, CanvasRenderingContext2D ctx, num screenWidth, |