mirror of
https://github.com/raysan5/raylib.git
synced 2026-02-05 13:49:17 -05:00
refactor to follow the CONVENTIONS.md (#5530)
Co-authored-by: maiconpintoabreu <maicon@thinkpad02.exads.com>
This commit is contained in:
@ -36,7 +36,7 @@ void main()
|
||||
vec3 ambient = albedo*vec3(0.1);
|
||||
vec3 viewDirection = normalize(viewPosition - fragPosition);
|
||||
|
||||
for (int i = 0; i < NR_LIGHTS; ++i)
|
||||
for (int i = 0; i < NR_LIGHTS; i++)
|
||||
{
|
||||
if (lights[i].enabled == 0) continue;
|
||||
vec3 lightDirection = lights[i].position - fragPosition;
|
||||
|
||||
@ -34,7 +34,7 @@ void main()
|
||||
// Fc(z) = z^2 + c on the complex numbers c from the plane does not diverge to infinity starting at z = 0
|
||||
// Here: z = a + bi. Iterations: z -> z^2 + c = (a + bi)^2 + (c.x + c.yi) = (a^2 - b^2 + c.x) + (2ab + c.y)i
|
||||
|
||||
for (int iter = 0; iter < maxIterationsLimit; ++iter)
|
||||
for (int iter = 0; iter < maxIterationsLimit; iter++)
|
||||
{
|
||||
float aa = a*a;
|
||||
float bb = b*b;
|
||||
|
||||
@ -34,7 +34,7 @@ void main()
|
||||
vec3 ambient = albedo*vec3(0.1);
|
||||
vec3 viewDirection = normalize(viewPosition - fragPosition);
|
||||
|
||||
for (int i = 0; i < NR_LIGHTS; ++i)
|
||||
for (int i = 0; i < NR_LIGHTS; i++)
|
||||
{
|
||||
if (lights[i].enabled == 0) continue;
|
||||
vec3 lightDirection = lights[i].position - fragPosition;
|
||||
|
||||
@ -41,7 +41,7 @@ void main()
|
||||
a = aa - bb + c.x;
|
||||
b = twoab + c.y;
|
||||
|
||||
++iter;
|
||||
iter++;
|
||||
}
|
||||
|
||||
if (iter >= maxIterations)
|
||||
|
||||
@ -32,7 +32,7 @@ void main() {
|
||||
vec3 ambient = albedo*vec3(0.1f);
|
||||
vec3 viewDirection = normalize(viewPosition - fragPosition);
|
||||
|
||||
for (int i = 0; i < NR_LIGHTS; ++i)
|
||||
for (int i = 0; i < NR_LIGHTS; i++)
|
||||
{
|
||||
if (lights[i].enabled == 0) continue;
|
||||
vec3 lightDirection = lights[i].position - fragPosition;
|
||||
|
||||
@ -31,7 +31,7 @@ void main()
|
||||
// Here: z = a + bi. Iterations: z -> z^2 + c = (a + bi)^2 + (c.x + c.yi) = (a^2 - b^2 + c.x) + (2ab + c.y)i
|
||||
|
||||
int iter = 0;
|
||||
for (iter = 0; iter < maxIterations; ++iter)
|
||||
for (iter = 0; iter < maxIterations; iter++)
|
||||
{
|
||||
float aa = a*a;
|
||||
float bb = b*b;
|
||||
|
||||
Reference in New Issue
Block a user