Levels of detail for brush stroke decreased to save on memory
This commit is contained in:
parent
241a0a9588
commit
f82e626686
6 changed files with 6 additions and 32 deletions
|
|
@ -204,13 +204,7 @@ void DrawComponent::calculate_draw_transform(const DrawData& drawData) {
|
|||
if(drawSetupData.shouldDraw) {
|
||||
drawSetupData.shouldDraw = updateDraw || !worldAABB || SCollision::collide(*worldAABB, drawData.cam.viewingAreaGenerousCollider);
|
||||
if(drawSetupData.shouldDraw) {
|
||||
if(drawData.mipMapLevelFive > coords.inverseScale)
|
||||
drawSetupData.mipmapLevel = 5;
|
||||
if(drawData.mipMapLevelFour > coords.inverseScale)
|
||||
drawSetupData.mipmapLevel = 4;
|
||||
else if(drawData.mipMapLevelThree > coords.inverseScale)
|
||||
drawSetupData.mipmapLevel = 3;
|
||||
else if(drawData.mipMapLevelTwo > coords.inverseScale)
|
||||
if(drawData.mipMapLevelTwo > coords.inverseScale)
|
||||
drawSetupData.mipmapLevel = 2;
|
||||
else if(drawData.mipMapLevelOne > coords.inverseScale)
|
||||
drawSetupData.mipmapLevel = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue