Lines Matching refs:appendf
835 noiseCode.appendf("\tvec4 %s;\n", floorVal); in emitCode()
836 noiseCode.appendf("\t%s.xy = floor(%s);\n", floorVal, noiseVec); in emitCode()
837 noiseCode.appendf("\t%s.zw = %s.xy + vec2(1.0);\n", floorVal, floorVal); in emitCode()
838 noiseCode.appendf("\tvec2 %s = fract(%s);\n", fractVal, noiseVec); in emitCode()
841 noiseCode.appendf("\n\tvec2 %s = %s * %s * (vec2(3.0) - vec2(2.0) * %s);", in emitCode()
846 noiseCode.appendf("\n\tif(%s.x >= %s.x) { %s.x -= %s.x; }", in emitCode()
848 noiseCode.appendf("\n\tif(%s.y >= %s.y) { %s.y -= %s.y; }", in emitCode()
850 noiseCode.appendf("\n\tif(%s.z >= %s.x) { %s.z -= %s.x; }", in emitCode()
852 noiseCode.appendf("\n\tif(%s.w >= %s.y) { %s.w -= %s.y; }", in emitCode()
857 noiseCode.appendf("\n\t%s = fract(floor(mod(%s, 256.0)) / vec4(256.0));\n", in emitCode()
863 xCoords.appendf("vec2(%s.x, 0.5)", floorVal); in emitCode()
865 noiseCode.appendf("\n\tvec2 %s;\n\t%s.x = ", latticeIdx, latticeIdx); in emitCode()
874 xCoords.appendf("vec2(%s.z, 0.5)", floorVal); in emitCode()
876 noiseCode.appendf("\n\t%s.y = ", latticeIdx); in emitCode()
889 noiseCode.appendf("\n\t%s = floor(%s * vec2(255.0) + vec2(0.5)) * vec2(0.003921569);", in emitCode()
894 noiseCode.appendf("\n\tvec4 %s = fract(%s.xyxy + %s.yyww);", bcoords, latticeIdx, floorVal); in emitCode()
896 noiseCode.appendf("\n\n\tvec2 %s;", uv); in emitCode()
900 latticeCoords.appendf("vec2(%s.x, %s)", bcoords, chanCoord); in emitCode()
901 noiseCode.appendf("\n\tvec4 %s = ", lattice); in emitCode()
904 noiseCode.appendf(".bgra;\n\t%s.x = ", uv); in emitCode()
905 noiseCode.appendf(dotLattice, lattice, lattice, inc8bit, fractVal); in emitCode()
908 noiseCode.appendf("\n\t%s.x -= 1.0;", fractVal); in emitCode()
912 latticeCoords.appendf("vec2(%s.y, %s)", bcoords, chanCoord); in emitCode()
916 noiseCode.appendf(".bgra;\n\t%s.y = ", uv); in emitCode()
917 noiseCode.appendf(dotLattice, lattice, lattice, inc8bit, fractVal); in emitCode()
921 noiseCode.appendf("\n\tvec2 %s;", ab); in emitCode()
922 noiseCode.appendf("\n\t%s.x = mix(%s.x, %s.y, %s.x);", ab, uv, uv, noiseSmooth); in emitCode()
924 noiseCode.appendf("\n\t%s.y -= 1.0;", fractVal); in emitCode()
928 latticeCoords.appendf("vec2(%s.w, %s)", bcoords, chanCoord); in emitCode()
932 noiseCode.appendf(".bgra;\n\t%s.y = ", uv); in emitCode()
933 noiseCode.appendf(dotLattice, lattice, lattice, inc8bit, fractVal); in emitCode()
936 noiseCode.appendf("\n\t%s.x += 1.0;", fractVal); in emitCode()
940 latticeCoords.appendf("vec2(%s.z, %s)", bcoords, chanCoord); in emitCode()
944 noiseCode.appendf(".bgra;\n\t%s.x = ", uv); in emitCode()
945 noiseCode.appendf(dotLattice, lattice, lattice, inc8bit, fractVal); in emitCode()
949 noiseCode.appendf("\n\t%s.y = mix(%s.x, %s.y, %s.x);", ab, uv, uv, noiseSmooth); in emitCode()
951 noiseCode.appendf("\n\treturn mix(%s.x, %s.y, %s.y);\n", ab, ab, noiseSmooth); in emitCode()
1252 noiseCode.appendf("vec3 f = %s(p);", fadeFuncName.c_str()); in emitCode()
1253 noiseCode.appendf("float A = %s(P.x) + P.y;", permFuncName.c_str()); in emitCode()
1254 noiseCode.appendf("float AA = %s(A) + P.z;", permFuncName.c_str()); in emitCode()
1255 noiseCode.appendf("float AB = %s(A + 1.0) + P.z;", permFuncName.c_str()); in emitCode()
1256 noiseCode.appendf("float B = %s(P.x + 1.0) + P.y;", permFuncName.c_str()); in emitCode()
1257 noiseCode.appendf("float BA = %s(B) + P.z;", permFuncName.c_str()); in emitCode()
1258 noiseCode.appendf("float BB = %s(B + 1.0) + P.z;", permFuncName.c_str()); in emitCode()
1259 noiseCode.appendf("float result = %s(", lerpFuncName.c_str()); in emitCode()
1260 noiseCode.appendf("%s(%s(%s(%s(AA), p),", lerpFuncName.c_str(), lerpFuncName.c_str(), in emitCode()
1262 noiseCode.appendf("%s(%s(BA), p + vec3(-1.0, 0.0, 0.0)), f.x),", gradFuncName.c_str(), in emitCode()
1264 noiseCode.appendf("%s(%s(%s(AB), p + vec3(0.0, -1.0, 0.0)),", lerpFuncName.c_str(), in emitCode()
1266 noiseCode.appendf("%s(%s(BB), p + vec3(-1.0, -1.0, 0.0)), f.x), f.y),", in emitCode()
1268 noiseCode.appendf("%s(%s(%s(%s(AA + 1.0), p + vec3(0.0, 0.0, -1.0)),", in emitCode()
1271 noiseCode.appendf("%s(%s(BA + 1.0), p + vec3(-1.0, 0.0, -1.0)), f.x),", in emitCode()
1273 noiseCode.appendf("%s(%s(%s(AB + 1.0), p + vec3(0.0, -1.0, -1.0)),", in emitCode()
1275 noiseCode.appendf("%s(%s(BB + 1.0), p + vec3(-1.0, -1.0, -1.0)), f.x), f.y), f.z);", in emitCode()
1289 noiseOctavesCode.appendf("for (float i = 0.0; i < %d; i++) {", pne.octaves()); in emitCode()
1290 noiseOctavesCode.appendf("result += %s(p) / ratio;", noiseFuncName.c_str()); in emitCode()