Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions src/nodes/core/VarNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,24 +282,3 @@ export const VarIntent = ( node ) => {
addMethodChaining( 'toVar', Var );
addMethodChaining( 'toConst', Const );
addMethodChaining( 'toVarIntent', VarIntent );

// Deprecated

/**
* @tsl
* @function
* @deprecated since r170. Use `Var( node )` or `node.toVar()` instead.
*
* @param {any} node
* @returns {VarNode}
*/
export const temp = ( node ) => { // @deprecated, r170

console.warn( 'TSL: "temp( node )" is deprecated. Use "Var( node )" or "node.toVar()" instead.' );

return createVar( node );

};

addMethodChaining( 'temp', temp );

47 changes: 0 additions & 47 deletions src/nodes/utils/Timer.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,50 +24,3 @@ export const deltaTime = /*@__PURE__*/ uniform( 0 ).setGroup( renderGroup ).onRe
* @type {UniformNode<uint>}
*/
export const frameId = /*@__PURE__*/ uniform( 0, 'uint' ).setGroup( renderGroup ).onRenderUpdate( ( frame ) => frame.frameId );

// Deprecated

/**
* @tsl
* @function
* @deprecated since r170. Use {@link time} instead.
*
* @param {number} [timeScale=1] - The time scale.
* @returns {UniformNode<float>}
*/
export const timerLocal = ( timeScale = 1 ) => { // @deprecated, r170

console.warn( 'TSL: timerLocal() is deprecated. Use "time" instead.' );
return time.mul( timeScale );

};

/**
* @tsl
* @function
* @deprecated since r170. Use {@link time} instead.
*
* @param {number} [timeScale=1] - The time scale.
* @returns {UniformNode<float>}
*/
export const timerGlobal = ( timeScale = 1 ) => { // @deprecated, r170

console.warn( 'TSL: timerGlobal() is deprecated. Use "time" instead.' );
return time.mul( timeScale );

};

/**
* @tsl
* @function
* @deprecated since r170. Use {@link deltaTime} instead.
*
* @param {number} [timeScale=1] - The time scale.
* @returns {UniformNode<float>}
*/
export const timerDelta = ( timeScale = 1 ) => { // @deprecated, r170

console.warn( 'TSL: timerDelta() is deprecated. Use "deltaTime" instead.' );
return deltaTime.mul( timeScale );

};
9 changes: 0 additions & 9 deletions src/renderers/WebGLRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3298,15 +3298,6 @@ class WebGLRenderer {

};

this.copyTextureToTexture3D = function ( srcTexture, dstTexture, srcRegion = null, dstPosition = null, level = 0 ) {

// @deprecated, r170
warnOnce( 'WebGLRenderer: copyTextureToTexture3D function has been deprecated. Use "copyTextureToTexture" instead.' );

return this.copyTextureToTexture( srcTexture, dstTexture, srcRegion, dstPosition, level );

};

/**
* Initializes the given WebGLRenderTarget memory. Useful for initializing a render target so data
* can be copied into it using {@link WebGLRenderer#copyTextureToTexture} before it has been
Expand Down
Loading