浏览代码

Merge pull request #18596 from Mugen87/dev42

Docs: Add ShaderMaterial.uniformsNeedUpdate.
Mr.doob 5 年之前
父节点
当前提交
17eca1415a
共有 2 个文件被更改,包括 10 次插入0 次删除
  1. 5 0
      docs/api/en/materials/ShaderMaterial.html
  2. 5 0
      docs/api/zh/materials/ShaderMaterial.html

+ 5 - 0
docs/api/en/materials/ShaderMaterial.html

@@ -409,6 +409,11 @@ this.extensions = {
 		so updating the value of the uniform will immediately update the value available to the GLSL code.
 		so updating the value of the uniform will immediately update the value available to the GLSL code.
 		</p>
 		</p>
 
 
+		<h3>[property:Boolean uniformsNeedUpdate]</h3>
+		<p>
+		Can be used to force a uniform update while changing uniforms in [page:Object3D.onBeforeRender](). Default is *false*.
+		</p>
+
 		<h3>[property:Boolean vertexColors]</h3>
 		<h3>[property:Boolean vertexColors]</h3>
 		<p>
 		<p>
 		Defines whether vertex coloring is used. Default is *false*.
 		Defines whether vertex coloring is used. Default is *false*.

+ 5 - 0
docs/api/zh/materials/ShaderMaterial.html

@@ -357,6 +357,11 @@ this.extensions = {
 			注意,uniforms逐帧被刷新,所以更新uniform值将立即更新GLSL代码中的相应值。
 			注意,uniforms逐帧被刷新,所以更新uniform值将立即更新GLSL代码中的相应值。
 		</p>
 		</p>
 
 
+		<h3>[property:Boolean uniformsNeedUpdate]</h3>
+		<p>
+		Can be used to force a uniform update while changing uniforms in [page:Object3D.onBeforeRender](). Default is *false*.
+		</p>
+
 		<h3>[property:Boolean vertexColors]</h3>
 		<h3>[property:Boolean vertexColors]</h3>
 		<p>
 		<p>
 		Defines whether vertex coloring is used. Default is *false*.
 		Defines whether vertex coloring is used. Default is *false*.