playcanvas / engine

Powerful web graphics runtime built on WebGL, WebGPU, WebXR and glTF
https://playcanvas.com
MIT License
9.73k stars 1.36k forks source link

Add support for simple compare expression to preprocessor #7133

Closed mvaligursky closed 3 days ago

mvaligursky commented 3 days ago

the preprocessor handled cases like

#ifdef XXX
#if defined(XXX)

now it additionally handles compares, like

#if XX == 3
#if XX != 4
#if XX < 5
#if XX == bloom