-
-
Notifications
You must be signed in to change notification settings - Fork 36k
Closed
Description
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
- Create a texture node from a RenderTarget's texture
- Create a wgsl shader that makes use of that texture node
- 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