Loading...
Uploaded by NemoKradXNA on Jan 21, 2009
This is the final clip of a multi part clip showing elements of my seventh HLSL tutorial. This clip shows the other 3 previous clips and a bit extra.
Entertainment
Standard YouTube License
how do you adjust the light so that it follows the sphere?
tnutty2k8 2 years ago
The sphere is the light position, so on each update, all items that use the light have the new light position passed to them, it's then passed on to the objects shader and the object is lit with the light at the new position.
NemoKradXNA 2 years ago
can I see a snippet?
If you go to my blog you can get ALL the source code...
The link should be at the end.
cool!
gtxx 3 years ago
Load more suggestions
how do you adjust the light so that it follows the sphere?
tnutty2k8 2 years ago
The sphere is the light position, so on each update, all items that use the light have the new light position passed to them, it's then passed on to the objects shader and the object is lit with the light at the new position.
NemoKradXNA 2 years ago
can I see a snippet?
tnutty2k8 2 years ago
If you go to my blog you can get ALL the source code...
The link should be at the end.
NemoKradXNA 2 years ago