两种高亮

高亮可以通过加也可以通过乘实现:

乘高亮:

gl_FragColor =  texture2D(CC_Texture0, v_texCoord)*u_highlight;

加高亮:

gl_FragColor =  texture2D(CC_Texture0, v_texCoord)+vec4(u_highlight);

不同的情况下不一定用哪个效果更好,需要根据画风格、功能等试验决定。

原文地址:https://www.cnblogs.com/wantnon/p/4598377.html