Breakhit, Return a Pixel Value

Hi guys,

I need to return a pixel color value from a texture on an object

The range is from 0-255 just from one channel or the sum of all RGBA, dose anyone know where I could even start with this?

Cheers in advance

Justin