18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-19 18:05:01 +01:00

fix(render): scale of model instances in the legacy and simple renderers

This commit is contained in:
2026-11-09 11:23:46 +01:00
parent 6824e8ae22
commit 963d65192a
2 changed files with 61 additions and 16 deletions

View File

@@ -364,6 +364,7 @@ private:
float m_specularopaquescalefactor { 1.f };
float m_speculartranslucentscalefactor { 1.f };
bool m_renderspecular{ false }; // controls whether to include specular component in the calculations
bool m_normalizenormals{ false }; // set while a scaled model instance is drawn, its normals need normalizing for the lighting
renderpass_config m_renderpass; // parameters for current render pass
section_sequence m_sectionqueue; // list of sections in current render pass