issues
search
galacean
/
engine
A typescript interactive engine, support 2D, 3D, animation, physics, built on WebGL and glTF.
https://galacean.antgroup.com/
MIT License
4.04k
stars
289
forks
source link
shaderlab macro function bug
#2086
Closed
zhuxudong
closed
2 months ago
zhuxudong
commented
2 months ago
shaderLab 语法:
define saturate( a ) clamp( a, 0.0, 1.0 )
编译后:
shaderLab 语法:
define saturate( a ) clamp( a, 0.0, 1.0 )
编译后:![image](https://github.com/galacean/engine/assets/17639043/a9edf9e4-3262-45de-9192-1b1f6b886abd)