Skip to content

Commit

Permalink
Brightened up and further enhanced the appearance of the wormhole eff…
Browse files Browse the repository at this point in the history
…ect.
  • Loading branch information
AnotherCommander committed Oct 26, 2024
1 parent 7bb5a05 commit 716e67e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Core/Entities/WormholeEntity.m
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
#import "OOLoggingExtended.h"
#import "OOSystemDescriptionManager.h"

#define OO_WORMHOLE_COLOR_BOOST 3.0
#define OO_WORMHOLE_COLOR_FVEC4 { 0.0, 0.0, 1.0, 0.25 }
#define OO_WORMHOLE_COLOR_BOOST 25.0
#define OO_WORMHOLE_COLOR_FVEC4 { 0.067, 0.067, 1.0, 0.25 }

// Hidden interface
@interface WormholeEntity (Private)
Expand Down Expand Up @@ -723,10 +723,11 @@ - (void) drawImmediate:(bool)immediate translucent:(bool)translucent

OOGL(glColor4fv(color_fv));
OOGLBEGIN(GL_TRIANGLE_FAN);
GLDrawBallBillboard(collision_radius, 4, srzd);
GLDrawBallBillboard(0.45 * collision_radius, 4, srzd);
OOGLEND();

DrawWormholeCorona(0.67 * collision_radius, collision_radius, 4, srzd, color_fv);
color_fv[3] = fmin(color_fv[3] * 2.0, 1.0);
DrawWormholeCorona(0.45 * collision_radius, collision_radius, 4, srzd, color_fv);

OOGL(glEnable(GL_CULL_FACE));
OOGL(glDisable(GL_BLEND));
Expand Down

0 comments on commit 716e67e

Please sign in to comment.