[转]在cocos2dx 3中使用Shader实现Sprite的灰度显示

 

gray.vsh

 

gray.fsh

转自:http://discuss.cocos2d-x.org/t/how-to-use-opengl-shader-in-cocos2d-x3-0/12430

2 thoughts on “[转]在cocos2dx 3中使用Shader实现Sprite的灰度显示

  1. Pingback: 给cocos2dx中的spine骨骼动画添加shader效果 | 啊呜喵

Leave a Reply

Your email address will not be published. Required fields are marked *