提交 f89e8db6 编写于 作者: T Takahiro

Clean up DataTexture3D

上级 a9e6a124
......@@ -2462,16 +2462,11 @@ function WebGLRenderer( parameters ) {
}() );
this.setTexture3D = ( function () {
this.setTexture3D = function ( texture, slot ) {
// backwards compatibility: peel texture.texture
return function setTexture3D( texture, slot ) {
textures.setTexture3D( texture, slot );
};
textures.setTexture3D( texture, slot );
}() );
};
this.setTexture = ( function () {
......
......@@ -476,7 +476,7 @@ function getSingularSetter( type ) {
case 0x8b5c: return setValue4fm; // _MAT4
case 0x8b5e: case 0x8d66: return setValueT1; // SAMPLER_2D, SAMPLER_EXTERNAL_OES
case 0x8B5F: return setValueT3D1; // SAMPLER_3D
case 0x8b5f: return setValueT3D1; // SAMPLER_3D
case 0x8b60: return setValueT6; // SAMPLER_CUBE
case 0x1404: case 0x8b56: return setValue1i; // INT, BOOL
......
......@@ -6,7 +6,7 @@ export class DataTexture3D extends Texture {
constructor(
data: ArrayBuffer | TypedArray,
width: number,
heighht: number,
depth?: number
height: number,
depth: number
);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册