Searched refs:noiseCode (Results 1 – 2 of 2) sorted by relevance
/external/skia/src/effects/ |
D | SkPerlinNoiseShader.cpp | 648 SkString noiseCode; in emitCode() local 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() [all …]
|
/external/skia/experimental/SkPerlinNoiseShader2/ |
D | SkPerlinNoiseShader2.cpp | 786 SkString noiseCode; in emitCode() local 788 noiseCode.appendf("\tvec4 %s;\n", floorVal); in emitCode() 789 noiseCode.appendf("\t%s.xy = floor(%s);\n", floorVal, noiseVec); in emitCode() 790 noiseCode.appendf("\t%s.zw = %s.xy + vec2(1.0);\n", floorVal, floorVal); in emitCode() 791 noiseCode.appendf("\tvec2 %s = fract(%s);\n", fractVal, noiseVec); in emitCode() 794 noiseCode.appendf("\n\tvec2 %s = %s * %s * (vec2(3.0) - vec2(2.0) * %s);", in emitCode() 799 noiseCode.appendf("\n\tif(%s.x >= %s.x) { %s.x -= %s.x; }", in emitCode() 801 noiseCode.appendf("\n\tif(%s.y >= %s.y) { %s.y -= %s.y; }", in emitCode() 803 noiseCode.appendf("\n\tif(%s.z >= %s.x) { %s.z -= %s.x; }", in emitCode() 805 noiseCode.appendf("\n\tif(%s.w >= %s.y) { %s.w -= %s.y; }", in emitCode() [all …]
|