Quantcast
Channel: Questions in topic: "compute shader"
Viewing all articles
Browse latest Browse all 287

Histogram Texture Mapping in a Compute Shader

$
0
0
I'm trying to do histogram matching between 2 images, so I want to do a mapping in order to specify the destination texture histogram. Is there any way to solve my problem? Here is the compute shader code. #pragma kernel HistogramMatchingMain Texture2D Source; RWTexture2D Destination; [numthreads(8,8,1)] void HistogramMatchingMain (uint3 id : SV_DispatchThreadID) { Destination[id.xy] = Mapping[Source[id.xy]]; }

Viewing all articles
Browse latest Browse all 287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>