javascript - Rendering an atmosphere using three. js -


For the purpose outlined in the title, I have seen the question, as well as this also. I am using THREEx.atmospherematerial () from the package in this way.

The content, in addition to the colors, is controlled by two parameters, power (P in the demo) and the cofficient (in the same demo). It is easy to find out that power controls the slope of the shield, but it is necessary to the extent.

In the demo, it is seen that the outer edge of the atmosphere is crisp, and the inner side, the field Turns towards transparency, gradually increasing. I want it to be round like the other, thus: the inner edge should have the lowest transparency, and the outer edge should be transparent.

Trying to use any negative force was not successful.

Can someone please help me, please?

I'm not sure that this is a good practice (moderators help me on this issue), but I got an answer, I'm sharing this, someone needs it in the future:

You can use lines

content = new THREEx .atmospherematerial (); Material.side = three Backside;

I wanted to achieve that effect.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -