I really want to give my enemies a different outline color than my player. Is there really no way to do this? Is it even possible to outline multiple objects at once or will this also cause performance problems?
Adjusting the alpha color does not seem to have any effect in my game.
You need to fork again my project, I’ve made changes/extended the shader (posteffect-outline.js).
You can outline as many models as you like with the same color with the current script.
Sadly not with the current implementation. Someone will have to extend the postprocess effect to run one pass for each different color.
Or find a different technique to create an outline effect. The Playcanvas editor uses a different methodology, extending the material/shader for each model. Not easy to implement but you can study the Playcanvas editor source code, it isn’t minified.
This is strange, not sure why you are getting this.
Usually it’s something with the project render settings that can mess up post process effects. I’ve tried all the combinations for the following flags, but the outline behaves and it’s placed correctly:
I have checked everything again but cannot find any differences in project settings and so on.
Camera has the apply and click script.
Light and entity has the OutlineLayer layer.
The only thing I notice is that when I launch my project for the first time it starts in portrait and yours in landscape. When I change the orientation of the device to landscape everything works fine. However, when I change your project to portrait it still works well.