Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Tensor value seems change after call ToRenderTexture(Inconsistent with RenderTexture)

Discussion in 'Barracuda' started by xmycissy, Jul 17, 2022.

  1. xmycissy

    xmycissy

    Joined:
    Apr 2, 2022
    Posts:
    1
    Hi, everyone~

    Here is how I call ToRenderTexture,


    and the function RenderTextureToTexture2DRFloat implements as below,



    The Result I get like this,


    You can see that colors[0].r (0.02085956) is not equal to workerOutput[0,0,0,0] (4.453816)
    My question is, shouldn't the two be equal? or am I missing something?
    Thank you for your reply