M2DrawBeginEmitter
function · models · primitive
- Address
0x70ca50· 192 bytes, up to0x70cb0f- Meaning
- Sets an emitter element's textures, lighting and material, and a view offset to the model
- Confidence
- verified, proof one
- Finding
- models/render#ribbon-particle-and-custom-draws
- Test
models::model_matrix_translate_difftest
Finding: Ribbon, particle and custom draws in models: drawing
A ribbon, particle or custom element sets its material state, offsets the view to the emitter's frame, draws, and restores the view and texture matrix. A particle element's material takes its blend from the emitter record and the flags 4, plus 1 when the record's flag 1 is set, plus 2 when its flag 8 is set, plus 0x10 when its blend is above 1.
The derivation is in the doc.
Callers 4
- M2DrawProjectedBatch models
- M2DrawRibbon models
- M2DrawParticles models
- M2DrawCustom models
Callees 7
- GxRsSetObject gx
- GxRsPush gx
- SetDeviceView gx
- GxXformSetTexture gx
- M2DrawSetTextures models
- M2DrawSetLighting models
- M2DrawSetMaterial models
Calls and jumps by a bare address, from tables/calls.tsv.