Home | History | Annotate | Download | only in gpu

Lines Matching refs:fsCodeAppend

114                 builder->fsCodeAppend("\tedgeAlpha *= innerAlpha;\n");
230 builder->fsCodeAppend("\tfloat test = dot(scaledOffset, scaledOffset) - 1.0;\n");
232 builder->fsCodeAppend("\tfloat grad_dot = dot(grad, grad);\n");
236 builder->fsCodeAppend("\tgrad_dot = max(grad_dot, 1.0e-4);\n");
237 builder->fsCodeAppend("\tfloat invlen = inversesqrt(grad_dot);\n");
238 builder->fsCodeAppend("\tfloat edgeAlpha = clamp(0.5-test*invlen, 0.0, 1.0);\n");
243 builder->fsCodeAppend("\ttest = dot(scaledOffset, scaledOffset) - 1.0;\n");
245 builder->fsCodeAppend("\tinvlen = inversesqrt(dot(grad, grad));\n");
246 builder->fsCodeAppend("\tedgeAlpha *= clamp(0.5+test*invlen, 0.0, 1.0);\n");
373 builder->fsCodeAppend("\tfloat test = dot(scaledOffset, scaledOffset) - 1.0;\n");
380 builder->fsCodeAppend("\tfloat grad_dot = dot(grad, grad);\n");
384 builder->fsCodeAppend("\tgrad_dot = max(grad_dot, 1.0e-4);\n");
385 builder->fsCodeAppend("\tfloat invlen = inversesqrt(grad_dot);\n");
388 builder->fsCodeAppend("\tfloat edgeAlpha = clamp(1.0-test*invlen, 0.0, 1.0);\n");
389 builder->fsCodeAppend("\tedgeAlpha *= clamp(1.0+test*invlen, 0.0, 1.0);\n");
391 builder->fsCodeAppend("\tfloat edgeAlpha = clamp(0.5-test*invlen, 0.0, 1.0);\n");
397 builder->fsCodeAppend("\ttest = dot(scaledOffset, scaledOffset) - 1.0;\n");
403 builder->fsCodeAppend("\tinvlen = inversesqrt(dot(grad, grad));\n");
404 builder->fsCodeAppend("\tedgeAlpha *= clamp(0.5+test*invlen, 0.0, 1.0);\n");