fragshader: if discard 和 gl_FragColor alpha 哪个性能好?
Creator 2.x
s11
(我什么都不会)
2021年01月7日 11:41
#1
看很多资料说, 尽量不用if;
片元着色器中, 裁剪颜色: 使用 if discard 和 gl_FragColor+step+ alpha= 0 哪个性能好?