Skip to content
This repository has been archived by the owner on Mar 5, 2021. It is now read-only.

Renderer options #143

Open
SamiPussinen opened this issue Sep 15, 2016 · 2 comments
Open

Renderer options #143

SamiPussinen opened this issue Sep 15, 2016 · 2 comments

Comments

@SamiPussinen
Copy link
Contributor

Hi!

I noticed that the renderer parameters are hard-coded at the moment. Originally I needed to enable alpha and antialiasing on the renderer and the only option seems to be to change these hard-coded values and rebuild the systems/game. I needed alpha because of lensflare effects.

I would propose that these options are added to the project settings, or some other config to be able to change these without a rebuild.

@mredbishop
Copy link

Can these not be overridden using javascript directly? Where are the settings you are trying to alter?

@bilou84
Copy link
Contributor

bilou84 commented Oct 15, 2016

You can hack something through a behavior to access the renderer object like so:
(this.actor as any).__inner.gameInstance.threeRenderer;

But from a quick search, it looks like you can't really change the antialiasing at runtime so that won't work for your need.
I agree we should give access to these options through the project settings. If you care to give it a try, we will be happy to take your contribution ;)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants