Introduction to Shaders With Cocos Creator - Blend Testing (10/10)

This series is built to help Cocos Creator developers and game developers to understand how to use shaders in their game. We won’t be doing a deep dive into building your own, but we will help you to understand and easily edit them to build the desired looks you want for your game. In this episode, we talk about call blending, a technique that deals with the transparency of an object. For example, in a real-life glass window, we can see through the transparency of the object. Transparent objects are classified as fully transparent (allowing all colors to pass through with zero transparency) and translucent (allowing colors to pass through with their own colors). Transparent objects do not make sense with a set of rules that simply use depth testing and are prone to rendering transparent objects incorrectly. So, we need to tell WebGL how to handle texture elements with alpha information. If you would like to build games, come try Cocos Creator, our open-source game engine for both 2D and 3D g
Back to Top