git.iko.soy
/
metal-metaballs
readme
files
commits
refs
on
master
help
sign in
Corrected metaball colors.
5fb38a4
vinivendra
11 years ago
PixelImage/MetalMetaballRenderer.swift
−1
compare with master
unified
split
@@ -1,4 +1,3 @@
1
−
// TODO: Metaballs from texture to buffer
2
// TODO: Use async dispatch to free up main queue
1
// TODO: Use async dispatch to free up main queue
3
// TODO: Refactor update into 2 calls: metalRendering() and textureToImage()
2
// TODO: Refactor update into 2 calls: metalRendering() and textureToImage()
4
// TODO: Use two textures/images to alternate the 2 calls (like OpenGL double buffers)
3
// TODO: Use two textures/images to alternate the 2 calls (like OpenGL double buffers)
PixelImage/shaders.metal
+1
−1
@@ -44,7 +44,7 @@ kernel void
44
}
44
}
45
}
45
}
46
46
47
−
float result = sum;
47
+
float result =
mix(0.0, 1.0, step(0.4,
sum
))
;
48
48
49
outTexture.write(float4(result, result / 2, 0, 1), gid);
49
outTexture.write(float4(result, result / 2, 0, 1), gid);
50
}
50
}
keys
esc to close
j k
move down, up
enter
open
esc
back, or up a level
1 2 3 4
readme, files, commits, refs
/
filter
y
copy the clone command
c
compare the chosen commit with another (or shift-click both)
?
show or hide this list