Skip to content

Commit 716e67e

Browse files
author
AnotherCommander
committed
Brightened up and further enhanced the appearance of the wormhole effect.
1 parent 7bb5a05 commit 716e67e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/Core/Entities/WormholeEntity.m

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
#import "OOLoggingExtended.h"
4141
#import "OOSystemDescriptionManager.h"
4242

43-
#define OO_WORMHOLE_COLOR_BOOST 3.0
44-
#define OO_WORMHOLE_COLOR_FVEC4 { 0.0, 0.0, 1.0, 0.25 }
43+
#define OO_WORMHOLE_COLOR_BOOST 25.0
44+
#define OO_WORMHOLE_COLOR_FVEC4 { 0.067, 0.067, 1.0, 0.25 }
4545

4646
// Hidden interface
4747
@interface WormholeEntity (Private)
@@ -723,10 +723,11 @@ - (void) drawImmediate:(bool)immediate translucent:(bool)translucent
723723

724724
OOGL(glColor4fv(color_fv));
725725
OOGLBEGIN(GL_TRIANGLE_FAN);
726-
GLDrawBallBillboard(collision_radius, 4, srzd);
726+
GLDrawBallBillboard(0.45 * collision_radius, 4, srzd);
727727
OOGLEND();
728728

729-
DrawWormholeCorona(0.67 * collision_radius, collision_radius, 4, srzd, color_fv);
729+
color_fv[3] = fmin(color_fv[3] * 2.0, 1.0);
730+
DrawWormholeCorona(0.45 * collision_radius, collision_radius, 4, srzd, color_fv);
730731

731732
OOGL(glEnable(GL_CULL_FACE));
732733
OOGL(glDisable(GL_BLEND));

0 commit comments

Comments
 (0)