Improved Shadows

I tweaked some of the flashlight code a week ago – and didn’t really realise how much it improved the rendering until I fired up GMod 12 today.

Here’s some comparisons..

I was only trying to change a bug reported by maxofs2d – in which the flashlight lit the world as if it was always started projecting from the player’s eyes. This illustrates it I think..

You see in the first image the light gets brighter the closer it is to your eyes. Which is wrong – it should get brighter the closer it is to the light source.

I thought I’d share some pictures because I was impressed by the difference – even if I didn’t mean to do it.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s