|
|
@@ -524,14 +524,13 @@ ${ flowData.code }
|
|
|
let snippet = null;
|
|
|
let group = false;
|
|
|
|
|
|
- if ( uniform.type === 'texture' ) {
|
|
|
+ if ( uniform.type === 'texture' || uniform.type === 'texture3D' ) {
|
|
|
|
|
|
const texture = uniform.node.value;
|
|
|
|
|
|
let typePrefix = '';
|
|
|
|
|
|
- if ( texture.isDataTexture === true ) {
|
|
|
-
|
|
|
+ if ( texture.isDataTexture === true || texture.isData3DTexture === true ) {
|
|
|
|
|
|
if ( texture.type === UnsignedIntType ) {
|
|
|
|
|
|
@@ -545,7 +544,11 @@ ${ flowData.code }
|
|
|
|
|
|
}
|
|
|
|
|
|
- if ( texture.compareFunction ) {
|
|
|
+ if ( uniform.type === 'texture3D' ) {
|
|
|
+
|
|
|
+ snippet = `${typePrefix}sampler3D ${ uniform.name };`;
|
|
|
+
|
|
|
+ } else if ( texture.compareFunction ) {
|
|
|
|
|
|
snippet = `sampler2DShadow ${ uniform.name };`;
|
|
|
|
|
|
@@ -563,10 +566,6 @@ ${ flowData.code }
|
|
|
|
|
|
snippet = `samplerCube ${ uniform.name };`;
|
|
|
|
|
|
- } else if ( uniform.type === 'texture3D' ) {
|
|
|
-
|
|
|
- snippet = `sampler3D ${ uniform.name };`;
|
|
|
-
|
|
|
} else if ( uniform.type === 'buffer' ) {
|
|
|
|
|
|
const bufferNode = uniform.node;
|
|
|
@@ -1115,7 +1114,7 @@ ${vars}
|
|
|
|
|
|
${ this.getSignature() }
|
|
|
|
|
|
-// extensions
|
|
|
+// extensions
|
|
|
${shaderData.extensions}
|
|
|
|
|
|
// precision
|