United States (English)
Canada (English)
Canada (Français)
España (Español)
France (Français)
Italia (Italia)
United Kingdom (English)
United States (English)
Forums
Hi,
Visitor
Sign In
Home
Quick Start Guide
News
Membership
Games
Games Catalog
Submit Game
Review Game
Creators
My Profile
My Business
Community
Forums
Community Spotlight
Community Resources
Education
Getting Started
Education Catalog
Starter Kits
Utilities
Resources
FAQ
Partners
Download
Feedback
Press Site
community forums
XNA Community Forums
»
XNA Game Studio Technologies (Xbox 360, Zune, and Windows)
»
XNA Framework
»
trouble with lighting
More Search Options
|
My Discussions
|
Active Topics
|
Not Read
Page 1 of 1 (2 items)
Sort Posts:
Oldest to newest
Newest to oldest
Previous
Next
trouble with lighting
Last post 05-06-2008 2:21 AM by
Sean James
. 1 replies.
05-05-2008 9:19 PM
Guy Washington
Posts
2
trouble with lighting
Reply
Quote
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
Sean James
Posts
112
Re: trouble with lighting
Answer
Reply
Quote
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'.
Innovative Games
|
The X-Engine
Page 1 of 1 (2 items)
Previous
Next
© 2008 Microsoft Corporation. All rights reserved.
Terms of Use
Privacy Statement
Code of Conduct
Feedback