提交 fe45bdde 编写于 作者: M Mr.doob

CubeTexture: Use RGBFormat by default.

上级 76e6d920
......@@ -3,12 +3,13 @@
*/
import { Texture } from './Texture.js';
import { CubeReflectionMapping } from '../constants.js';
import { CubeReflectionMapping, RGBFormat } from '../constants.js';
function CubeTexture( images, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy, encoding ) {
images = images !== undefined ? images : [];
mapping = mapping !== undefined ? mapping : CubeReflectionMapping;
format = format !== undefined ? format : RGBFormat;
Texture.call( this, images, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy, encoding );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册