Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在片段着色器中将颜色查找表作为 Sampler2D 加载,如何创建如下所示的 png 文件?
请帮帮我。
好的。我解决了,只需在 CGContext 上绘制颜色并保存为 PNG 文件。在绘制之前,关闭抗锯齿。
CGContextSetAllowsAntialiasing(context,0);