Home | History | Annotate | Download | only in effects

Lines Matching full:appendf

792     permuteCode.appendf("const vec2 C = vec2(34.0, 1.0);\n"
831 noiseCode.appendf(
874 noiseCode.appendf(
1023 noiseCode.appendf("\tvec4 %s = vec4(floor(%s), fract(%s));", noiseXY, noiseVec, noiseVec);
1026 noiseCode.appendf("\n\tvec2 %s = %s.zw * %s.zw * (vec2(3.0) - vec2(2.0) * %s.zw);",
1031 noiseCode.appendf("\n\tif(%s.x >= %s.x) { %s.x -= %s.x; }",
1033 noiseCode.appendf("\n\tif(%s.x >= (%s.x - 1.0)) { %s.x -= (%s.x - 1.0); }",
1035 noiseCode.appendf("\n\tif(%s.y >= %s.y) { %s.y -= %s.y; }",
1037 noiseCode.appendf("\n\tif(%s.y >= (%s.y - 1.0)) { %s.y -= (%s.y - 1.0); }",
1042 noiseCode.appendf("\n\t%s.xy = fract(floor(mod(%s.xy, 256.0)) / vec2(256.0));\n",
1048 xCoords.appendf("vec2(%s.x, 0.5)", noiseXY);
1050 noiseCode.appendf("\n\tvec2 %s;\n\t%s.x = ", latticeIdx, latticeIdx);
1058 xCoords.appendf("vec2(fract(%s.x + %s), 0.5)", noiseXY, inc8bit);
1060 noiseCode.appendf("\n\t%s.y = ", latticeIdx);
1072 noiseCode.appendf("\n\t%s = floor(%s * vec2(255.0) + vec2(0.5)) * vec2(0.003921569);",
1077 noiseCode.appendf("\n\t%s = fract(%s + %s.yy);", latticeIdx, latticeIdx, noiseXY);
1079 noiseCode.appendf("\n\tvec2 %s = %s.zw;", fractVal, noiseXY);
1081 noiseCode.appendf("\n\n\tvec2 %s;", uv);
1085 latticeCoords.appendf("vec2(%s.x, %s)", latticeIdx, chanCoord);
1086 noiseCode.appendf("\n\tvec4 %s = ", lattice);
1089 noiseCode.appendf(".bgra;\n\t%s.x = ", uv);
1090 noiseCode.appendf(dotLattice, lattice, lattice, inc8bit, fractVal);
1093 noiseCode.appendf("\n\t%s.x -= 1.0;", fractVal);
1097 latticeCoords.appendf("vec2(%s.y, %s)", latticeIdx, chanCoord);
1101 noiseCode.appendf(".bgra;\n\t%s.y = ", uv);
1102 noiseCode.appendf(dotLattice, lattice, lattice, inc8bit, fractVal);
1106 noiseCode.appendf("\n\tvec2 %s;", ab);
1107 noiseCode.appendf("\n\t%s.x = mix(%s.x, %s.y, %s.x);", ab, uv, uv, noiseSmooth);
1109 noiseCode.appendf("\n\t%s.y -= 1.0;", fractVal);
1113 latticeCoords.appendf("vec2(fract(%s.y + %s), %s)", latticeIdx, inc8bit, chanCoord);
1117 noiseCode.appendf(".bgra;\n\t%s.y = ", uv);
1118 noiseCode.appendf(dotLattice, lattice, lattice, inc8bit, fractVal);
1121 noiseCode.appendf("\n\t%s.x += 1.0;", fractVal);
1125 latticeCoords.appendf("vec2(fract(%s.x + %s), %s)", latticeIdx, inc8bit, chanCoord);
1129 noiseCode.appendf(".bgra;\n\t%s.x = ", uv);
1130 noiseCode.appendf(dotLattice, lattice, lattice, inc8bit, fractVal);
1134 noiseCode.appendf("\n\t%s.y = mix(%s.x, %s.y, %s.x);", ab, uv, uv, noiseSmooth);
1136 noiseCode.appendf("\n\treturn mix(%s.x, %s.y, %s.y);\n", ab, ab, noiseSmooth);