Implement lod opcode (returns LOD that would be used)