문제

How to to get view direction in world space inside the Cg geometry shader?

도움이 되었습니까?

해결책

it will be in the view matrix. Depending on your column-major or column-minor ordering, it will be in viewXf[3].xyz or flaot3(viewXf[0].w,viewXf[1].w,viewXf[2].w). Negate as desired to match your other math.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top