Author Topic: Be able to see more lights  (Read 885 times)

It's ugly how the limit of lights we can see are 7,and while the rest looks all dark.


I'm really sure that's possible to be fixed

pretty sure this is a limitation with OpenGL itself and so it'd probably be an ordeal to change

pretty sure this is a limitation with OpenGL itself and so it'd probably be an ordeal to change
Not really, open the shader file and copy the code for each more light you want

Good choice of sky. :P

But yes I totally agree. A slider or something would be nice.

I've wanted this option forever. I'm not sure whether it would be difficult to make possible because he never really talked about it.

Not really, open the shader file and copy the code for each more light you want
wat

have you actually successfully done this or seen it done

because that would be amazing

wat

have you actually successfully done this or seen it done

because that would be amazing
I haven't figured it out yet how to do this, but I was told that's how you do it
Someone showed me an image where it rendered the effects of 32 lights
However, the shaders where updated massively since then, I don't know whether it's still possible

Just pasting this code for each more light doesn't do any difference, as the positions aren't put in the variables or something
Code: [Select]
uniform vec4     pointLightPos7;
uniform vec4   pointLightColor7;
uniform float pointLightRadius7;


   lightDelta = worldPos.xyz - pointLightPos7.xyz;
   lightDot = max(dot(-normalize(lightDelta), worldNormal), 0.0f);
   ratio = 1.0f - (length(lightDelta) / pointLightRadius7);
   ratio = ratio * ratio * ratio * 0.4f;
   ratio = max(ratio, 0.0f);
   pointLightTotal.xyz += ratio * lightDot * pointLightColor7.xyz;
The below part is inside a function to calculate the effects of it

Something else must be modified too so it actually uses those variables for more lights, and I don't know what it is