Lines Matching refs:codeAppend
199 fragBuilder->codeAppend("vec2 dxy = max(max(dxy0, dxy1), 0.0);");
245 fragBuilder->codeAppend("vec2 dxy = max(vec2(dxy0.x, max(dxy0.y, dy1)), 0.0);");
254 fragBuilder->codeAppend("vec2 dxy = max(vec2(max(dxy0.x, dx1), dxy0.y), 0.0);");
263 fragBuilder->codeAppend("vec2 dxy = max(vec2(dxy1.x, max(dy0, dxy1.y)), 0.0);");
272 fragBuilder->codeAppend("vec2 dxy = max(vec2(max(dx0, dxy1.x), dxy1.y), 0.0);");
281 fragBuilder->codeAppend("alpha = 1.0 - alpha;");
552 fragBuilder->codeAppend("vec2 dxy = max(max(dxy0, dxy1), 0.0);");
571 fragBuilder->codeAppend("vec2 dxy = max(max(dxy0, dxy1), 0.0);");
584 fragBuilder->codeAppend("float implicit = dot(Z, dxy) - 1.0;");
586 fragBuilder->codeAppend("float grad_dot = 4.0 * dot(Z, Z);");
588 fragBuilder->codeAppend("grad_dot = max(grad_dot, 1.0e-4);");
589 fragBuilder->codeAppend("float approx_dist = implicit * inversesqrt(grad_dot);");
595 fragBuilder->codeAppend("float alpha = clamp(0.5 - approx_dist, 0.0, 1.0);");
597 fragBuilder->codeAppend("float alpha = clamp(0.5 + approx_dist, 0.0, 1.0);");