Texture needs some love too; addded typechecked parameter setting.