XNA Creators Club Online
Page 1 of 1 (2 items)
Sort Posts: Previous Next

trouble with lighting

Last post 05-06-2008 2:21 AM by Sean James. 1 replies.
  • 05-05-2008 9:19 PM

    trouble with lighting

    I'm trying to use a cartoon shader, but I can no longer make the effect.EnableDefaultLighting() because the effect is no longer a BasicEffect. How do I make that call using a non basic effect.

    Thanks.
  • 05-06-2008 2:21 AM In reply to

    Re: trouble with lighting

    Answer
    The effect class is different from the basiceffect class. Using an effect, all the lighting is done in the .fx effect file. Lighting is not provided for you, you will have to do it yourself. Do a google search for 'HLSL Phong Lighting'. Or look for the tutorial on thehazymind.com for 'Creating a custom BasicEffect'.
Page 1 of 1 (2 items) Previous Next