hughsk / hughsk/three-effectcomposer
Fix for "don't use render texture property"
Open
- Dominant language
- JavaScript
- Stars
- 51
- Forks
- 21
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.