Skip to content

WebGPURenderer: incorrect texture dimensions in shaders #29851

@vlucendo

Description

@vlucendo

Description

When creating a texture node from a Rendertarget's texture and resizing it via .setSize, the texture size is not recognized by wgsl shaders when doing textureDimensions(...).

Reproduction steps

  1. Create a texture node from a RenderTarget's texture
  2. Create a wgsl shader that makes use of that texture node
  3. Make the shader behave in different ways depending on the size of the texture. It's always the same even if the size of the RenderTarget changes.

Code

See fiddle

Live example

  • WebGPURenderer - The color of the sphere should change from white to pink every 500ms, but it stays the same

Screenshots

No response

Version

r170

Device

Desktop

Browser

Chrome

OS

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions