Walt There are no additional fields required.
Thank you, Walt, for the tips.
You are right about no additional field is required for small laser shot Shader
. After messing around a shader file for a few good hours, Shader
attribute finally kicked in when placed under the innermost AtlasSprite
. Thanks to built-in error log.
Here's a screenshot of blue laser.
The small laser inherits crew uniform color, using vanilla images.
Cease fire! Cease fire! Which fool fired first?
Under the hood, crew uniform color _uniformColor
seemed to be a global variable accessible to all shaders. When laser and beam colors are modified according to _uniformColor
, an unexpected event was observed. For example,
When the Cobra fleet met the G.I. Joe fleet, instead of having red and blue lasers flying from both sides following respective crew uniform color, all the lasers and beams on the field switched color at the same time intermittently depending on the player's view.
Question
- Is there a way to mod beam and laser color such that shader effect is localized to a ship instance or to player N by allegiance? Exclude modding a new faction
Edited on 26 Aug 2017
Started a separate thread at
Cater mod actions for own, friendly and enemy
This topic is considered resolved.