You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was working on a project not long ago, and I needed the sky to also be visible from the exterior (space), which actually looked great after I used something like the custom code, below:
'''
AFRAME.registerComponent('planet-sky', {
init: function () {
var scene = this.el.sceneEl;
var sky = scene.querySelector('a-sky');
sky.setAttribute('material', 'side', 'double');
sky.setAttribute('theta-length', 180);
}
});
'''
It took some poking around at first to achieve this, so I was thinking it would be great if it were possible to easily set sky parameters such as geometry.thetaLength and material.side for a full sphere that can also be seen from the exterior.
Of course, radius would also be great, which I mentioned in #45.
Just a thought. Keep up the great work!
The text was updated successfully, but these errors were encountered:
I was working on a project not long ago, and I needed the sky to also be visible from the exterior (space), which actually looked great after I used something like the custom code, below:
'''
AFRAME.registerComponent('planet-sky', {
init: function () {
}
});
'''
It took some poking around at first to achieve this, so I was thinking it would be great if it were possible to easily set sky parameters such as
geometry.thetaLength
andmaterial.side
for a full sphere that can also be seen from the exterior.Of course,
radius
would also be great, which I mentioned in #45.Just a thought. Keep up the great work!
The text was updated successfully, but these errors were encountered: