Where to look for modelspace to worldspace transformation of objects?

0

Hello,

in my efforts to analyze and understand the engine code, i have troubles locating the exact place where the worldspace position of an object is applied to the model data due to the high amount of abstraction of the rendering pipeline.

I have assumed that the hw(?) vertex shaders receive 3 matrices like model, view, projection, but maybe this works a bit differently in lumberyard.

Maybe someone with more profound knowledge about the inner workings of the engine could point me to a class where this would happen or explain the process?

Thank you in advance

질문됨 7년 전189회 조회
3개 답변
0
수락된 답변

At least for some of the shaders, I think that code happens in the shader code in ModificatorVT.cfi. Look at the _pos_Modificators function.

답변함 7년 전
0

Hey @REDACTEDUSER

답변함 7년 전
0

@REDACTEDUSER

Thanks a lot for pointing me to that file, that is what i was looking for. Now i gotta find the C++ classes that provide the according constant buffer with the InPos vector to the shader.

답변함 7년 전

이 게시물은 마감됨: 새 답변, 댓글 및 투표 추가가 비활성화되었습니다.

관련 콘텐츠