UNPKG

@animech-public/playcanvas

Version:
18 lines (13 loc) 292 B
var aoPS = /* glsl */` void getAO() { dAo = 1.0; #ifdef MAPTEXTURE float aoBase = texture2DBias($SAMPLER, $UV, textureBias).$CH; dAo *= addAoDetail(aoBase); #endif #ifdef MAPVERTEX dAo *= saturate(vVertexColor.$VC); #endif } `; export { aoPS as default };