Categories
Apple iOS

In Metal Shader, how to treat a specific color in texture2d as transparent, for example, white?

In Metal Shader, you can replace the color you want to make transparent by comparing it with a literal color using the texture2d and its sampling coordinates passed to the fragment shader.

Categories
Apple iOS Mac

Comparison between AVCaptureMovieFileOutput and AVAssetWriter

AVCaptureMovieFileOutput and AVAssetWriter are both APIs for recording video on iOS / Mac devices, are both int AVFoundation, but they have some differences.

Categories
Apple iOS Mac

Four reasons why Apple finally build ARM Mac (M1)

Lately, Apple announced the M1 chip, releasing the M1, or Arm, versions of the three machines, the Macbook Air, Macbook PRO 13, and Mac mini. Apple called the M1 chip Apple Silicon.

In fact, as developers, we knew about this much earlier. Then we also got our hands on the DTK to test the compatibility of the ARM CPU for Macs and Mac OS and our own Mac software.

Categories
Apple iOS

What is LIDAR on Apple’s iPhone 12 flagship?

This year Apple’s iPhone 12 flagship model comes with LIDAR. Many people have actually heard of LIDAR, and Apple’s press conference also mentioned it, but I actually found that many people don’t understand what it’s all about.