Shader application feeds

Posted By: Steempipe

Shader application feeds - 11/13/07 22:04

Hi,

When the engine sends these vectors to a shader, what "spaces" are they in?
Are they all fed in the same space?

vecViewPos
vecViewDir
vecSunDir
vecLightPos
The normal
The position


Thanks,
Eric
Posted By: zazang

Re: Shader application feeds - 11/14/07 02:02

I think the first 4 are in world space while the last 2 in model space.
Posted By: xXxGuitar511

Re: Shader application feeds - 11/14/07 05:13

exactly...
© 2024 lite-C Forums