Removed defaultTex as it wasn't used, and is replaced by a property.