Added function to enable and disable color writes
Fixed a bug regarding blending
Working sample