theme mandelbrot

This commit is contained in:
ntr committed 2022-05-06 16:53:30 +10:00
1 parent 9fea0bdab6
commit 986d37148a
5 files changed
+172 -43

No files matched your search

+1 -1
View File
@@ -37,7 +37,7 @@ public class ThemeShaderBinder : MonoBehaviour
Gradient theme = preferences.Theme();
for (int i = 0; i < textureSize; i++) {
_colorCache[i] = theme.Evaluate(1.0f / i);
_colorCache[i] = theme.Evaluate((float)i / (float)textureSize);
}
_texture.SetPixels(_colorCache);