提交 ea4b13ae 编写于 作者: A alteredq

Added "iv" uniform type for passing integer arrays interpreted as ivec3.

上级 4eedc69f
此差异已折叠。
此差异已折叠。
......@@ -5075,6 +5075,10 @@ THREE.WebGLRenderer = function ( parameters ) {
_gl.uniform1iv( location, value );
} else if ( type === "iv" ) { // flat array of integers with 3 x N size (JS or typed array)
_gl.uniform3iv( location, value );
} else if ( type === "fv1" ) { // flat array of floats (JS or typed array)
_gl.uniform1fv( location, value );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册