Advertisement

Diretcx Rotation Matrix Problem

Started by August 05, 2016 12:30 PM
11 comments, last by FantasyVII 8 years, 6 months ago

In one of your shaders, you're treating position as a row vector, and in the other as a column vector. There's no need to be using opposite mathematical conventions in each API; it will be far less confusing to use the same conventions and code between both APIs.

^This guy above!

Advertisement

In one of your shaders, you're treating position as a row vector, and in the other as a column vector. There's no need to be using opposite mathematical conventions in each API; it will be far less confusing to use the same conventions and code between both APIs.

Huh, I didn't even think of that. Sorry I'm kind of new to this whole matrix multiplication thing :)

Thanks :D

This topic is closed to new replies.

Advertisement