AddVector3
function · objectlayer · primitive
- Address
0x621160· 36 bytes, up to0x621183- Signature
float * __fastcall (float *out, const float *a, const float *b)- Meaning
- Writes a + b
- Confidence
- verified, proof one
- Finding
- camera#unprojection
- Test
models::aabsp_segment_clip_difftest,models::aabsp_segment_split_difftest,models::ribbon_segment_emit_difftest,objectlayer::vector3_scale_add_difftest
Finding: Unprojection in camera
0x7ad2c0 maps a screen fraction (a, b), each in [0, 1] from the bottom-left, to a point on
the near plane and a point on the far plane, written through ecx and edx. It reads two device
matrices, builds the eight frustum corners c0 to c7 with 0x5c43b0, and interpolates: near is
lerp(lerp(c0, c1, b), lerp(c3, c2, b), a), far the same over c4, c5, c7, c6. It does
not read a camera.
The derivation is in the doc.
Callers 20
- CEffect::Update objectlayer
- SyncLightNode terrain
- BuildFrustumVolume terrain
- BuildPortalVolume terrain
- GetLiquidStatus terrain
- CMapObj::FootprintCells models
- TraceTerrainFirstHit terrain
- GatherMapObjectFacets terrain
- CMapChunk::AddImpassableWalls terrain
- TestMapObjectBox terrain
- CMapChunk::GetLiquidHeight terrain
- AaBspIntersectSegmentNode models
- LinkLightToGroups terrain
- BuildDecalTransforms lighting
- M2SceneSegmentCollision models
- UnprojectScreenPoint camera
- CParticleEmitter2::GetBounds models
- CRibbonEmitter::EmitSegment models
- IntersectRayCone cmath
- SegmentLineDistance cmath
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.