From 164cc505531f80b9fd885639a09215a01fbfdb20 Mon Sep 17 00:00:00 2001 From: aardgoose Date: Sat, 10 Jun 2017 11:49:15 +0100 Subject: [PATCH 1/4] expose WebGLRenderLists --- src/renderers/WebGLRenderer.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/renderers/WebGLRenderer.js b/src/renderers/WebGLRenderer.js index 289bad4a3084cb..381b0c392ef3e1 100644 --- a/src/renderers/WebGLRenderer.js +++ b/src/renderers/WebGLRenderer.js @@ -406,6 +406,12 @@ function WebGLRenderer( parameters ) { }; + this.getRenderLists = function () { + + return renderLists; + + }; + this.getSize = function () { return { From 78b0cd8be328ab7c6d04886b0f9f651d55523120 Mon Sep 17 00:00:00 2001 From: aardgoose Date: Mon, 12 Jun 2017 21:15:40 +0100 Subject: [PATCH 2/4] document new method --- docs/api/renderers/WebGLRenderer.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/api/renderers/WebGLRenderer.html b/docs/api/renderers/WebGLRenderer.html index 8fc1b8a8b3865d..5780e96aadfe4b 100644 --- a/docs/api/renderers/WebGLRenderer.html +++ b/docs/api/renderers/WebGLRenderer.html @@ -354,6 +354,9 @@

[method:number getPixelRatio]()

[method:string getPrecision]()

This gets the precision used by the shaders. It returns "highp","mediump" or "lowp".
+

[method:WebGLRenderLists getRenderLists]()

+
Returns the renderer's internal WebGLRenderLists object.
+

[method:Object getSize]()

Returns an object containing the width and height of the renderer's output canvas, in pixels.
From 45021d37bcb3997d19c2d6e2a26efe940d087bd6 Mon Sep 17 00:00:00 2001 From: aardgoose Date: Tue, 13 Jun 2017 20:22:48 +0100 Subject: [PATCH 3/4] revised api --- docs/api/renderers/WebGLRenderer.html | 8 +++++--- src/renderers/WebGLRenderer.js | 7 +------ 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/docs/api/renderers/WebGLRenderer.html b/docs/api/renderers/WebGLRenderer.html index 5780e96aadfe4b..4e154227bead6c 100644 --- a/docs/api/renderers/WebGLRenderer.html +++ b/docs/api/renderers/WebGLRenderer.html @@ -212,6 +212,11 @@

[property:Object properties]

Used internally by the renderer to keep track of various sub object properties. +

[property:WebGLRenderLists renderLists]

+
+ Internal object handling ordering of scene object rendering. +
+

[property:WebGLShadowMap shadowMap]

This contains the reference to the shadow map, if used. @@ -354,9 +359,6 @@

[method:number getPixelRatio]()

[method:string getPrecision]()

This gets the precision used by the shaders. It returns "highp","mediump" or "lowp".
-

[method:WebGLRenderLists getRenderLists]()

-
Returns the renderer's internal WebGLRenderLists object.
-

[method:Object getSize]()

Returns an object containing the width and height of the renderer's output canvas, in pixels.
diff --git a/src/renderers/WebGLRenderer.js b/src/renderers/WebGLRenderer.js index 381b0c392ef3e1..71ccc870e88a5d 100644 --- a/src/renderers/WebGLRenderer.js +++ b/src/renderers/WebGLRenderer.js @@ -343,6 +343,7 @@ function WebGLRenderer( parameters ) { this.capabilities = capabilities; this.extensions = extensions; this.properties = properties; + this.renderLists = renderLists; this.state = state; // shadow map @@ -406,12 +407,6 @@ function WebGLRenderer( parameters ) { }; - this.getRenderLists = function () { - - return renderLists; - - }; - this.getSize = function () { return { From c6f6e98b3f0ea5b4f643c9067ed81fb6e5e5c03e Mon Sep 17 00:00:00 2001 From: aardgoose Date: Tue, 13 Jun 2017 20:26:34 +0100 Subject: [PATCH 4/4] tweak docs --- docs/api/renderers/WebGLRenderer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/renderers/WebGLRenderer.html b/docs/api/renderers/WebGLRenderer.html index 4e154227bead6c..1f1e317e78546f 100644 --- a/docs/api/renderers/WebGLRenderer.html +++ b/docs/api/renderers/WebGLRenderer.html @@ -214,7 +214,7 @@

[property:Object properties]

[property:WebGLRenderLists renderLists]

- Internal object handling ordering of scene object rendering. + Used internally to handle ordering of scene object rendering.

[property:WebGLShadowMap shadowMap]