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 )

编译后: image