Fixes Texture Unit usage in  texture apply  related to compiler use of shadow attributes