Expand description
Filling of MilkUniforms exactly like CPlugin::ApplyShaderParams (milkdropfs.cpp),
including its quirks, plus the preset-level random state (CState::RandomizePresetVars).
Structs§
- RotParams
- Per-preset random rotation/translation parameters (
m_rot_base,m_rot_speed,m_xlate) for the 24rot_*matrices, plusm_rand_preset.
Functions§
- drop_
rot_ translation - projectM uploads
glm::mat3x4(mat4): only the three rotation columns, so the translation (row 3 of the ABI’sfloat4x3) is lost. Zero it (seecrate::CompatRules::rot_translation_dropped). - pack_
float4x3 - Pack a D3DX 4x4 (row-major
m[row][col]) into the ABI’sfloat4x3->mat3x4layout:out[col][row] = m[row][col]forcol < 3. - rot_
matrix temp = Rx * T * Rz * Ry(D3DXMatrixMultiply order used byApplyShaderParams).