Skip to content

Fix for "don't use render texture property" #5

Description

@christiankaseburg

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions