Cocos Shader

effect-show

In modern graphics engines, to correctly render objects, it’s necessary to write Vertex and Fragment code snippets that run on the GPU. Those code snippets are known as shaders.

On the devices driven by OpenGL, a shader programming language called GLSL (OpenGL Shading Language) is widely used.

To adapt the industrial workflows and enhance the usability of shader fragments, Cocos Creator has encapsulated a shader framework based on GLSL — Cocos Shader.

This chapter mainly introduces the working and usage of Cocos Shader.

Table of Contents