We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
dFdx
dFdy
1 parent 541455a commit f25d5a2Copy full SHA for f25d5a2
src/nodes/math/MathNode.js
@@ -260,6 +260,14 @@ class MathNode extends TempNode {
260
261
}
262
263
+ if ( builder.shaderStage !== 'fragment' && ( method === MathNode.DFDX || method === MathNode.DFDY ) ) {
264
+
265
+ console.warn( `THREE.TSL: '${ method }' is not supported in the ${ builder.shaderStage } stage.` );
266
267
+ method = '/*' + method + '*/';
268
269
+ }
270
271
params.push( a.build( builder, inputType ) );
272
if ( b !== null ) params.push( b.build( builder, inputType ) );
273
if ( c !== null ) params.push( c.build( builder, inputType ) );
0 commit comments