Lines Matching refs:noiseCode
721 SkString noiseCode; in emitCode() local
723 noiseCode.append( in emitCode()
733 noiseCode.append( in emitCode()
744 noiseCode.appendf("half2 latticeIdx = half2(%s.a, %s.a);", sampleX.c_str(), sampleY.c_str()); in emitCode()
753 noiseCode.append( in emitCode()
758 noiseCode.append("half4 bcoords = 256*latticeIdx.xyxy + floorVal.yyww;"); in emitCode()
760 noiseCode.append("half2 uv;"); in emitCode()
775 noiseCode.appendf("half4 lattice = %s;", sampleA.c_str()); in emitCode()
776 noiseCode.appendf("uv.x = %s;", dotLattice.c_str()); in emitCode()
779 noiseCode.append("fractVal.x -= 1.0;"); in emitCode()
780 noiseCode.appendf("lattice = %s;", sampleB.c_str()); in emitCode()
781 noiseCode.appendf("uv.y = %s;", dotLattice.c_str()); in emitCode()
784 noiseCode.append("half2 ab;"); in emitCode()
785 noiseCode.append("ab.x = mix(uv.x, uv.y, noiseSmooth.x);"); in emitCode()
788 noiseCode.append("fractVal.y -= 1.0;"); in emitCode()
789 noiseCode.appendf("lattice = %s;", sampleC.c_str()); in emitCode()
790 noiseCode.appendf("uv.y = %s;", dotLattice.c_str()); in emitCode()
793 noiseCode.append("fractVal.x += 1.0;"); in emitCode()
794 noiseCode.appendf("lattice = %s;", sampleD.c_str()); in emitCode()
795 noiseCode.appendf("uv.x = %s;", dotLattice.c_str()); in emitCode()
798 noiseCode.append("ab.y = mix(uv.x, uv.y, noiseSmooth.x);"); in emitCode()
800 noiseCode.append("return mix(ab.x, ab.y, noiseSmooth.y);"); in emitCode()
806 noiseCode.c_str()); in emitCode()
810 noiseCode.c_str()); in emitCode()