Skip to main content
Share Your Experience: Take the 2024 Developer Survey
4 votes
Accepted

How do I create a localtoworldmatrix and worldtolocalmatrix in Godot?

In Godot a Transform3D has no concept of local or world. They are transformations between spaces, and what those spaces are depend on how you use them. For a ...
Theraot's user avatar
  • 27k
1 vote

Custom matrix structure with OpenGL shaders

Alright, so I managed to boil it down to types, the MAT4 (double) didn't work, so I made another structure MAT4F for floats and ...
Valtsuh's user avatar
  • 79
1 vote
Accepted

How can I calculate vertex positions for a rectangle outline using a unit square, vertex normals, model matrix and outline thickness?

I have updated my Unity project which I think does what you want: https://github.com/paulsinnett/RectangleOutlineShader As long as you stick to integer coordinates, scales, and widths, I think it ...
Paul's user avatar
  • 131
1 vote

Extract a rotation matrix given a camera direction (vector) and a up vector for the camera?

As python code (assumes x to the right and y down in camera space): ...
LC117's user avatar
  • 111

Only top scored, non community-wiki answers of a minimum length are eligible