Quantcast
Channel: Latest Questions by aosome23
Viewing all articles
Browse latest Browse all 64

Find color of pixel from sampler2D using pixel coord or Finding the dimension of sampler2D

$
0
0
Is there anyway to find a pixel value of a sampler2D using pixel coord? Or is there a way to get the dimension of the texture? Right now all I can do is tex2D(sampler2D, UV). However, I need to find the pixel next to the current pixel of the UV coordinate.

Viewing all articles
Browse latest Browse all 64

Trending Articles



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