Lines Matching refs:appendf

650     noiseCode.appendf("\tvec4 %s;\n", floorVal);  in emitCode()
651 noiseCode.appendf("\t%s.xy = floor(%s);\n", floorVal, noiseVec); in emitCode()
652 noiseCode.appendf("\t%s.zw = %s.xy + vec2(1.0);\n", floorVal, floorVal); in emitCode()
653 noiseCode.appendf("\tvec2 %s = fract(%s);\n", fractVal, noiseVec); in emitCode()
656 noiseCode.appendf("\n\tvec2 %s = %s * %s * (vec2(3.0) - vec2(2.0) * %s);", in emitCode()
661 noiseCode.appendf("\n\tif(%s.x >= %s.x) { %s.x -= %s.x; }", in emitCode()
663 noiseCode.appendf("\n\tif(%s.y >= %s.y) { %s.y -= %s.y; }", in emitCode()
665 noiseCode.appendf("\n\tif(%s.z >= %s.x) { %s.z -= %s.x; }", in emitCode()
667 noiseCode.appendf("\n\tif(%s.w >= %s.y) { %s.w -= %s.y; }", in emitCode()
672 noiseCode.appendf("\n\t%s = fract(floor(mod(%s, 256.0)) / vec4(256.0));\n", in emitCode()
678 xCoords.appendf("vec2(%s.x, 0.5)", floorVal); in emitCode()
680 noiseCode.appendf("\n\tvec2 %s;\n\t%s.x = ", latticeIdx, latticeIdx); in emitCode()
689 xCoords.appendf("vec2(%s.z, 0.5)", floorVal); in emitCode()
691 noiseCode.appendf("\n\t%s.y = ", latticeIdx); in emitCode()
704 noiseCode.appendf("\n\t%s = floor(%s * vec2(255.0) + vec2(0.5)) * vec2(0.003921569);", in emitCode()
709 noiseCode.appendf("\n\tvec4 %s = fract(%s.xyxy + %s.yyww);", bcoords, latticeIdx, floorVal); in emitCode()
711 noiseCode.appendf("\n\n\tvec2 %s;", uv); in emitCode()
715 latticeCoords.appendf("vec2(%s.x, %s)", bcoords, chanCoord); in emitCode()
716 noiseCode.appendf("\n\tvec4 %s = ", lattice); in emitCode()
719 noiseCode.appendf(".bgra;\n\t%s.x = ", uv); in emitCode()
720 noiseCode.appendf(dotLattice, lattice, lattice, inc8bit, fractVal); in emitCode()
723 noiseCode.appendf("\n\t%s.x -= 1.0;", fractVal); in emitCode()
727 latticeCoords.appendf("vec2(%s.y, %s)", bcoords, chanCoord); in emitCode()
731 noiseCode.appendf(".bgra;\n\t%s.y = ", uv); in emitCode()
732 noiseCode.appendf(dotLattice, lattice, lattice, inc8bit, fractVal); in emitCode()
736 noiseCode.appendf("\n\tvec2 %s;", ab); in emitCode()
737 noiseCode.appendf("\n\t%s.x = mix(%s.x, %s.y, %s.x);", ab, uv, uv, noiseSmooth); in emitCode()
739 noiseCode.appendf("\n\t%s.y -= 1.0;", fractVal); in emitCode()
743 latticeCoords.appendf("vec2(%s.w, %s)", bcoords, chanCoord); in emitCode()
747 noiseCode.appendf(".bgra;\n\t%s.y = ", uv); in emitCode()
748 noiseCode.appendf(dotLattice, lattice, lattice, inc8bit, fractVal); in emitCode()
751 noiseCode.appendf("\n\t%s.x += 1.0;", fractVal); in emitCode()
755 latticeCoords.appendf("vec2(%s.z, %s)", bcoords, chanCoord); in emitCode()
759 noiseCode.appendf(".bgra;\n\t%s.x = ", uv); in emitCode()
760 noiseCode.appendf(dotLattice, lattice, lattice, inc8bit, fractVal); in emitCode()
764 noiseCode.appendf("\n\t%s.y = mix(%s.x, %s.y, %s.x);", ab, uv, uv, noiseSmooth); in emitCode()
766 noiseCode.appendf("\n\treturn mix(%s.x, %s.y, %s.y);\n", ab, ab, noiseSmooth); in emitCode()