Skip to content

Commit c54da3f

Browse files
committed
ImmediateRenderObject: Promoted material (WebGLRenderer depends of it).
1 parent 151ba8e commit c54da3f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

examples/js/MarchingCubes.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77

88
THREE.MarchingCubes = function ( resolution, material, enableUvs, enableColors ) {
99

10-
THREE.ImmediateRenderObject.call( this );
11-
12-
this.material = material;
10+
THREE.ImmediateRenderObject.call( this, material );
1311

1412
this.enableUvs = enableUvs !== undefined ? enableUvs : false;
1513
this.enableColors = enableColors !== undefined ? enableColors : false;

src/extras/objects/ImmediateRenderObject.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
* @author alteredq / http://alteredqualia.com/
33
*/
44

5-
THREE.ImmediateRenderObject = function () {
5+
THREE.ImmediateRenderObject = function ( material ) {
66

77
THREE.Object3D.call( this );
88

9+
this.material = material;
910
this.render = function ( renderCallback ) {};
1011

1112
};

0 commit comments

Comments
 (0)