Jump to content

April 2017 »

S M T W T F S
      1
2345678
9101112131415
16171819202122
2324252627 28 29
30      

Recent Entries

Recent Comments

Latest Visitors

- - - - -

Three-point Lighting – LitSkull Demo


C# SlimDX DirectX 11 Lighting
4: Adsense

This time, we are going to take the scene that we used for the Shapes Demo, and apply a three-point lighting shader. We’ll replace the central sphere from the scene with the skull model that we loaded from a file in the Skull Demo, to make the scene a little more interesting. We will also do some work encapsulating our shader in a C# class, as we will be using this shader effect as a basis that we will extend when we look at texturing, blending and other effects. As always, the full code for this example can be found at my Github repository https://github.com/ericrrichards/dx11.git; the project for this example can be found in the DX11 solution under Examples/LitSkull.
Posted ImagePosted ImagePosted Image
Left to Right: Rendering the scene with 1 key light, rendering the scene with key and fill lights, rendering the scene with key, fill and back lights

Read More...

Aug 04 2013 11:46 AM

Watch your memory wink.png

Aug 05 2013 05:24 AM

How so?

Aug 05 2013 10:05 AM

You're leaking.

Aug 05 2013 11:26 AM

Where, exactly?  I'm not seeing any undisposed SlimDX objects, and Util.GetArray is freeing up the temporary pointer it allocates on the heap.

Note: GameDev.net moderates comments.