the ambient value is the same for the whole entity. you have to get the texture's pixel colour. if c_trace with SCAN_TEXTURE can't do the job for entities (i'm not sure here) you should try a view with size 1x1 pointing downwards and reading the texture information via bitmap instructions.