Question by
ju_my · Feb 17, 2020 at 11:14 AM ·
texturecompute shadersplatmaps
Render texture copy to splat map problem
Hi, i'm modifying renderTextures in a compute shader thrue this simplified code: Compute shader
RWTexture2D<float4> splat0; // splat map
RWTexture2D<float4> 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
Comment
Answer by ju_my · Feb 21, 2020 at 02:15 PM
I can finaly post pictures, here is the result
sans-titre.jpg
(148.3 kB)