optimized texture lookup
fixed optimized texture lookup

now fast & correct