Fixed compilation issues in debug builds.
Improved the transparency pass for model rendering.