Skip to main content
GameDev.net gamedev.net
🔒 Locked

Quick question on effects

Started by Alpha_ProgDes Feb 2, 2011 at 7:26 PM 0 replies 3.4k views
Original Post
Alpha_ProgDes
Alpha_ProgDes
On page 62, this line: "effect.EnableDefaultLighting();" is this considered a "Technique" in XNA?
Beginner in Game Development?  Read here. And read here.  
lemDace
lemDace
I don't think it is a technique, in the sense that we have to loop through the basic effect techniques and apply each one.

According to this link Standard Lighting Rig

When calling effect.EnableDefaultLighting(); a number of default positioned lights are added to the effect so that the model it is applied to gets lit in a nice way, with a back light, fill light, and a key light.

I came across this link BasicEffect Lighting also which shows how you can play around with the values of the default lights in the BasicEffect and change positions and colors etc.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.