Dynamic 2d Lighting in Opengl
Loading...
6,556
Loading...
Uploader Comments (zoser)
see all
All Comments (13)
-
nice
-
@DKM101 oh, right, i forgot about this
-
vsync...
-
why so low fps?
-
Can you share the source
-
how do you generate these shadows? ik the question has already been asked , but can you give me a more in depth reply? thnx
-
@otplanet666 Dot Product is easy to calculate. Shouldn't you do it yourself?
-
Easiest way to do this is to simply create a shadow map once per frame and modulate that in with the scene lighting pass. (Opposed to shadow volumes etc)
-
could you post your code that calc the dot procduct?
Loading...
The shadows don't merge correctly.
mov0001000 2 years ago
yeah , but this is an old video
zoser 2 years ago
how do you generate those shadows?
TheForce 3 years ago
With the position of the light and the position of each vertex, project a poligon with alpha...
if the dot product between the light and the normal of the surface is < 0 draw the shadow
zoser 3 years ago