Selaa lähdekoodia

Add initRenderTarget docs (#28308)

Garrett Johnson 1 vuosi sitten
vanhempi
commit
64b0a7cba9
1 muutettua tiedostoa jossa 7 lisäystä ja 0 poistoa
  1. 7 0
      docs/api/en/renderers/WebGLRenderer.html

+ 7 - 0
docs/api/en/renderers/WebGLRenderer.html

@@ -493,6 +493,13 @@ document.body.appendChild( renderer.domElement );
 			and GPU upload overhead).
 		</p>
 
+		<h3>[method:undefined initRenderTarget]( [param:WebGLRenderTarget target] )</h3>
+		<p>
+			Initializes the given WebGLRenderTarget memory. Useful for initializing a render
+			target so data can be copied into it using [page:WebGLRenderer.copyTextureToTexture .copyTextureToTexture]
+			before it has been rendered to.
+		</p>
+
 		<h3>[method:undefined resetGLState]( )</h3>
 		<p>
 			Reset the GL state to default. Called internally if the WebGL context is