Hi, i'm modifying renderTextures in a compute shader thrue this simplified code:
Compute shader
RWTexture2D splat0; // splat map
RWTexture2D splat1;
[numthreads(8, 8, 1)]
void UpdateAll(uint2 id : SV_DispatchThreadID)
{
splat0[coord] = color0;
splat1[coord] = color1;
}
Then i copy the render textures directly into my terrain splatmaps like this:
C#
Graphics.CopyTexture(_splat0Temp, splatMap0);
Graphics.CopyTexture(_splat1Temp, splatMap1);
But something is going wrong (I can't show you here how cause when i try to upload an image or a gif i get this error "Error parsing the uploaded file." so i will try to explain it...)
When i zoom in the modifications shows up but if i zoom out modifications fade out, maybe this is something due to mip maps but i don't know how to resolve it.
If someone is having a clue of what's going on, i would be very happy to know.
Thanks
↧