Home | History | Annotate | Download | only in effects

Lines Matching refs:appendf

808     permuteCode.appendf("const vec2 C = vec2(34.0, 1.0);\n"
847 noiseCode.appendf(
890 noiseCode.appendf(
1039 noiseCode.appendf("\tvec4 %s = vec4(floor(%s), fract(%s));", noiseXY, noiseVec, noiseVec);
1042 noiseCode.appendf("\n\tvec2 %s = %s.zw * %s.zw * (vec2(3.0) - vec2(2.0) * %s.zw);",
1047 noiseCode.appendf("\n\tif(%s.x >= %s.x) { %s.x -= %s.x; }",
1049 noiseCode.appendf("\n\tif(%s.x >= (%s.x - 1.0)) { %s.x -= (%s.x - 1.0); }",
1051 noiseCode.appendf("\n\tif(%s.y >= %s.y) { %s.y -= %s.y; }",
1053 noiseCode.appendf("\n\tif(%s.y >= (%s.y - 1.0)) { %s.y -= (%s.y - 1.0); }",
1058 noiseCode.appendf("\n\t%s.xy = fract(floor(mod(%s.xy, 256.0)) / vec2(256.0));\n",
1064 xCoords.appendf("vec2(%s.x, 0.5)", noiseXY);
1066 noiseCode.appendf("\n\tvec2 %s;\n\t%s.x = ", latticeIdx, latticeIdx);
1074 xCoords.appendf("vec2(fract(%s.x + %s), 0.5)", noiseXY, inc8bit);
1076 noiseCode.appendf("\n\t%s.y = ", latticeIdx);
1088 noiseCode.appendf("\n\t%s = floor(%s * vec2(255.0) + vec2(0.5)) * vec2(0.003921569);",
1093 noiseCode.appendf("\n\t%s = fract(%s + %s.yy);", latticeIdx, latticeIdx, noiseXY);
1095 noiseCode.appendf("\n\tvec2 %s = %s.zw;", fractVal, noiseXY);
1097 noiseCode.appendf("\n\n\tvec2 %s;", uv);
1101 latticeCoords.appendf("vec2(%s.x, %s)", latticeIdx, chanCoord);
1102 noiseCode.appendf("\n\tvec4 %s = ", lattice);
1105 noiseCode.appendf(".bgra;\n\t%s.x = ", uv);
1106 noiseCode.appendf(dotLattice, lattice, lattice, inc8bit, fractVal);
1109 noiseCode.appendf("\n\t%s.x -= 1.0;", fractVal);
1113 latticeCoords.appendf("vec2(%s.y, %s)", latticeIdx, chanCoord);
1117 noiseCode.appendf(".bgra;\n\t%s.y = ", uv);
1118 noiseCode.appendf(dotLattice, lattice, lattice, inc8bit, fractVal);
1122 noiseCode.appendf("\n\tvec2 %s;", ab);
1123 noiseCode.appendf("\n\t%s.x = mix(%s.x, %s.y, %s.x);", ab, uv, uv, noiseSmooth);
1125 noiseCode.appendf("\n\t%s.y -= 1.0;", fractVal);
1129 latticeCoords.appendf("vec2(fract(%s.y + %s), %s)", latticeIdx, inc8bit, chanCoord);
1133 noiseCode.appendf(".bgra;\n\t%s.y = ", uv);
1134 noiseCode.appendf(dotLattice, lattice, lattice, inc8bit, fractVal);
1137 noiseCode.appendf("\n\t%s.x += 1.0;", fractVal);
1141 latticeCoords.appendf("vec2(fract(%s.x + %s), %s)", latticeIdx, inc8bit, chanCoord);
1145 noiseCode.appendf(".bgra;\n\t%s.x = ", uv);
1146 noiseCode.appendf(dotLattice, lattice, lattice, inc8bit, fractVal);
1150 noiseCode.appendf("\n\t%s.y = mix(%s.x, %s.y, %s.x);", ab, uv, uv, noiseSmooth);
1152 noiseCode.appendf("\n\treturn mix(%s.x, %s.y, %s.y);\n", ab, ab, noiseSmooth);