Quick question on effects
Started by Alpha_ProgDes, Feb 02 2011 01:26 PM
1 reply to this topic
#1 Crossbones+ - Reputation: 3310
Posted 02 February 2011 - 01:26 PM
On page 62, this line: "effect.EnableDefaultLighting();" is this considered a "Technique" in XNA?
Beginner in Game Development? Read here.
Super Mario Bros clone tutorial written in XNA 4.0 [MonoGame, ANX, and MonoXNA] by Scott Haley
If you have found any of the posts helpful, please show your appreciation by clicking the up arrow on those posts ![]()
Spoiler
Sponsor:
#2 Members - Reputation: 100
Posted 03 February 2011 - 11:33 PM
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.
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.






