You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is the fix for the warning for everyone who got the package from npm: three.webglrenderer.setTexture2D: don't use render targets as textures. Use their .texture property instead.
Locate your shaderpass file in your node_modules, and search for this line: this.uniforms[ this.textureID ].value = readBuffer;
Next, replace that line with this: this.uniforms[ this.textureID ].value = readBuffer.texture;
As you can see all that is added to this line is .texture to the readBuffer to fix the warning.
The text was updated successfully, but these errors were encountered:
Hello,
Here is the fix for the warning for everyone who got the package from npm:
three.webglrenderer.setTexture2D: don't use render targets as textures. Use their .texture property instead.
Locate your shaderpass file in your node_modules, and search for this line:
this.uniforms[ this.textureID ].value = readBuffer;
Next, replace that line with this:
this.uniforms[ this.textureID ].value = readBuffer.texture;
As you can see all that is added to this line is .texture to the readBuffer to fix the warning.
The text was updated successfully, but these errors were encountered: