Style conventions
This commit is contained in:
parent
bcc51a2e79
commit
f9b3f1a623
|
|
@ -13,8 +13,7 @@ uniform float zoom; // Zoom of the scale.
|
||||||
// NOTE: Maximum number of shader for-loop iterations depend on GPU,
|
// NOTE: Maximum number of shader for-loop iterations depend on GPU,
|
||||||
// for example, on RasperryPi for this examply only supports up to 60
|
// for example, on RasperryPi for this examply only supports up to 60
|
||||||
const int MAX_ITERATIONS = 48; // Max iterations to do.
|
const int MAX_ITERATIONS = 48; // Max iterations to do.
|
||||||
|
const float COLOR_CYCLES = 1; // Number of times the color palette repeats.
|
||||||
const float COLOR_CYCLES = 1; // Number of times the palette repeats.
|
|
||||||
|
|
||||||
// Square a complex number
|
// Square a complex number
|
||||||
vec2 ComplexSquare(vec2 z)
|
vec2 ComplexSquare(vec2 z)
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ uniform vec2 offset; // Offset of the scale.
|
||||||
uniform float zoom; // Zoom of the scale.
|
uniform float zoom; // Zoom of the scale.
|
||||||
|
|
||||||
const int MAX_ITERATIONS = 255; // Max iterations to do.
|
const int MAX_ITERATIONS = 255; // Max iterations to do.
|
||||||
const float COLOR_CYCLES = 2; // Number of times the palette repeats. Can show higher detail for higher iteration numbers.
|
const float COLOR_CYCLES = 2; // Number of times the color palette repeats. Can show higher detail for higher iteration numbers.
|
||||||
|
|
||||||
// Square a complex number
|
// Square a complex number
|
||||||
vec2 ComplexSquare(vec2 z)
|
vec2 ComplexSquare(vec2 z)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user