Search Unity

CopyActiveRenderTextureToTexture seems don't work when it cross the terrain tile

Discussion in 'World Building' started by chena_cpp, Dec 28, 2019.

  1. chena_cpp

    chena_cpp

    Joined:
    Oct 27, 2014
    Posts:
    24
    I paint a mask on terrain:
    1. paint to temp rt.
    2. use CopyActiveRenderTextureToTexture to update the terraindata's alphamap.

    if the temp rt don't cross the terrain tile in horizonal direction, it works.

    upload_2019-12-28_16-7-40.png

    It's a bug or i set up something wrong.
    I don't have the CopyActiveRenderTextureToTexture code, is there method to debug it?
    Thanks.