theme mandelbrot
This commit is contained in:
1 parent
9fea0bdab6
commit
986d37148a
5 files changed
+172
-43
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user