提交 f0c66ae0 编写于 作者: L looeee

Uniforms doc minor update

上级 8c393748
......@@ -27,7 +27,14 @@
<h3>Uniform types</h3>
<p>
Each uniform must have a *value* property. The type of the value must correspond to the type of the uniform variable in the GLSL code as specified for the primitive GLSL types in the table below. Uniform structures and arrays are also supported. GLSL arrays of primitive type must either be specified as an array of the corresponding THREE objects or as a flat array containing the data of all the objects. In other words; GLSL primitives in arrays must not be represented by arrays. This rule does not apply transitively. An array of *vec2* arrays, each with a length of five vectors, must be an array of arrays, of either five *THREE.Vector2* objects or ten *number*s.
Each uniform must have a *value* property. The type of the value must correspond to the
type of the uniform variable in the GLSL code as specified for the primitive GLSL types
in the table below. Uniform structures and arrays are also supported. GLSL arrays of primitive
type must either be specified as an array of the corresponding THREE objects or as a flat
array containing the data of all the objects. In other words; GLSL primitives in arrays
must not be represented by arrays. This rule does not apply transitively.
An array of *vec2* arrays, each with a length of five vectors, must be an array of arrays,
of either five [page:Vector2] objects or ten *number*s.
</p>
<table>
<caption><a id="uniform-types">Uniform types</a></caption>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册