Well, after some time of programming, testing finally a first version of my skydome Script.
i tried implementing a scattering algorithm, hope you like it.
Here is an example :
for usage instuctions press read more.
Download : Skydome version 1.0 (20539)
A Note: Please try to improve the script and let me know if you use it! for questions just mail me.
To use this do the following:
– Import the package in you project
– Drag the skydomeMesh into the scene. i saw a little error here. but for now you have to make the scale x,y,z to 100.
drag the aScattering material on the skydomeObject.
Set textures (cloud/stars)
Set wind direction (try to see what it does)
– Create a directionalLight and name is “Sun”
now drag the Sun.cs to the directional light, set the property “maincontroller” to the skydome controller object
– Create and emptyGameobject and name it “Skydome controller”
Drag the skydome2.cs to the skydomeController object (NOT THE SPHERE)
Set the properties of the skydomescript:
sunLight > the directionallight object.
Skydome > the sphere object.
cam > your camera.
You can try some settings if you press “TAB”.