Procházet zdrojové kódy

Update WebGLRenderer.html

gero3 před 11 roky
rodič
revize
68385ceda8
1 změnil soubory, kde provedl 30 přidání a 15 odebrání
  1. 30 15
      docs/api/renderers/WebGLRenderer.html

+ 30 - 15
docs/api/renderers/WebGLRenderer.html

@@ -288,26 +288,41 @@
 
 
 		<h3>.setBlending( blending, blendEquation, blendSrc, blendDst )</h3>
-		<div>TODO.</div>
-
-
-		<h3>.setTexture( texture, slot )</h3>
-		<div>TODO.</div>
-
-
-		<h3>.setRenderTarget( renderTarget )</h3>
-		<div>TODO.</div>
-
-
+		<div>
+		blending -- The [page:Texture texture] that needs to be set.<br />
+		blendEquation -- The number indicating which slot should be used by the texture.<br />
+		blendSrc -- The number indicating which slot should be used by the texture.<br />
+		blendDst -- The number indicating which slot should be used by the texture.
+		</div>
+		<div>
+		This method sets the correct texture to the correct slot for the wegl shader. The slot number can be found as a value of the uniform of the sampler.
+		</div>
+		
+		<h3>.setTexture( [page:Texture texture], [page:number slot] )</h3>
+		<div>
+		texture -- The [page:Texture texture] that needs to be set.<br />
+		slot -- The number indicating which slot should be used by the texture.
+		</div>
+		<div>
+		This method sets the correct texture to the correct slot for the wegl shader. The slot number can be found as a value of the uniform of the sampler.
+		</div>
+		
+		<h3>.setRenderTarget( [page:WebGLRenderTarget renderTarget] )</h3>
+		<div>
+		renderTarget -- The [page:WebGLRenderTarget renderTarget] that needs to be activated.<br />
+		</div>
+		<div>
+		This method sets the active rendertarget.
+		</div>
 
-		<h3>.supportsCompressedTextureS3TC() [page:todo]</h3>
+		<h3>.supportsCompressedTextureS3TC() [page:boolean]</h3>
 		<div>
-		todo
+		This method returns true if the webgl implementation supports compressed textures of the format S3TC.
 		</div>
 
-		<h3>.getMaxAnisotropy() [page:todo]</h3>
+		<h3>.getMaxAnisotropy() [page:number]</h3>
 		<div>
-		todo
+		This returns the anisotropy level of the textures.
 		</div>
 
 		<h3>.getPrecision() [page:string]</h3>