M44d.TransformPosProj
Closed this issue · 7 comments
luithefirst commented
It might be convenient also translate M44d.TransformPosProj to an appropriate shader code (like we already do with TransformDir and other).
let p = uniform.ProjTrafo.TransformPosProj someVec3
krauthaufen commented
Isn't the implementation in your commit wrong? Or did i miss the w-division?
hyazinthh commented
Should be there. Maybe you looked at the -Full
variant in Compiler.fs
? TransformPosProj
is implemented at expression level in Shader.fs
.
krauthaufen commented
But the full variant should also divide by w right?
hyazinthh commented
The Aardvark.Base
implementation does not do the division.
krauthaufen commented
Okay, didn't know that, but TransformPosProjFull
is then identical to m * V4d(arg, 1.0)
right?
hyazinthh commented
Yeah, it's identical.
luithefirst commented
I also find the name misleading, it should only be TransformPosFull
.