diff --git a/docs/api/renderers/WebGLRenderer.html b/docs/api/renderers/WebGLRenderer.html index dc5ada8dc3696224178c7cad88397d76ad0a328b..b77a7e51435fb92cc296a8e580c60daf84071a67 100644 --- a/docs/api/renderers/WebGLRenderer.html +++ b/docs/api/renderers/WebGLRenderer.html @@ -175,11 +175,17 @@ Return a [page:Boolean] true if the context supports vertex textures. +

[method:number getPixelRatio]()

+
Returns current device pixel ratio used.
+ +

[method:null setPixelRatio]( [page:number value] )

+
Sets device pixel ratio. This is usually used for HiDPI device to prevent bluring output canvas.
+

[method:Object getSize]()

Returns an object containing the width and height of the renderer's output canvas, in pixels.

[method:null setSize]( [page:Integer width], [page:Integer height], [page:Boolean updateStyle] )

-
Resizes the output canvas to (width, height), and also sets the viewport to fit that size, starting in (0, 0). Setting updateStyle to true adds explicit pixel units to the output canvas style.
+
Resizes the output canvas to (width, height) with device pixel ratio taken into account, and also sets the viewport to fit that size, starting in (0, 0). Setting updateStyle to true adds explicit pixel units to the output canvas style.

[method:null setViewport]( [page:Integer x], [page:Integer y], [page:Integer width], [page:Integer height] )

Sets the viewport to render from (x, y) to (x + width, y + height).