3D Label Depth Test

Hi folks. Is it possible to enable depth test for cc.Label node? I want to add text to a 3D surface but it always renders in front of everything. Cocos Creator 2.3.0

I’ve added following lines to shader and it worked:

image

Thanks :slight_smile:

2 Likes

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.