How does '__decl__' work in shader?

Hi! I am learning babylon source code, and confused with --decl-- in shader code. Can anyone explain to me how it works?
https://github.com/BabylonJS/Babylon.js/blob/e54d62dbad27a2e8faf26769adfed27342e51d49/src/Shaders/default.fragment.fx#L1

1 Like

This should help: `VERTEX SHADER ERROR: 0:222: 'world' : redefinition` errors appeared in my own shader MToonMaterial - #2 by Evgeni_Popov

2 Likes