Advertisement
Guest User

Enhanced Sky for Daggerfall Tools

a guest
Mar 20th, 2015
409
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Enhanced Sky For Daggerfall Tools by Lypyl
  2.  
  3. http://www.filedropper.com/enhancedsky_2
  4.  
  5. Installation instructions:
  6.  
  7. 1. Extract the Enhanced Sky Unity package from archive, and import it by going to Assets>Import Package>Custom Package in Unity and select the package.
  8.  
  9. 2. Add EnhancedSkyController to hierarchy from prefabs folder. Note - you will need a PlayerAdvanced prefab with the weather releated scripts, and you'll probably want the teleporting functions from Explorer mode so it will probably be easiest to start with a scene that has that - or just use the EnhancedSkyTest scene.
  10.  
  11. 3. Add new layer named SkyLayer, and make sure the EnhancedSkyController and children are all in said layer.
  12.  
  13. 4. Go to Windows->Lighting and add the Sky material to the skybox (from the materials folder), and the Sun Gameobject (from the hierarchy) as the sun.
  14.  
  15. 5. Set the player camera clear flags to depth only, and uncheck the SkyLayer from the culling masks. For the SkyCam, it should only have the SkyLayer checked - and most importantly make sure both cameras have the same Rendering Path setting.
  16.  
  17. 6. Replace PlayerEnterExit & StreamingWorld w. Enhanced sky versions. If you don't want to replace them entirely, all the changes made are labeled w. "//##" - there's about 4 changes in PlayerEnterExit, and 1 in StreamingWorld
  18.  
  19. 7. Adjust the color of the lens flare attached to the sun to be more "sun colored".
  20.  
  21. General:
  22.  
  23. Sun/Moon/Stars will cycle based on DF time. Clouds are mostly randomized, but if it's raining or snowing it (should) will be overcast. Clouds are generated when you transition from inside to outside or Teleport using StreamingWorld.TeleportToCoordinates()
  24.  
  25. Stars currently just turn on and off at dusk and dawn, in the future they will gradually fade in and out.
  26.  
  27. You can switch between the vanilla sky rig and Enhanced sky using EnhancedSkyToggle on the SkyManager.
  28.  
  29. The Sun object has a disabled directional light on it - this is on purpose. The Daggerfall SunLightRig is used for lighting, but the procedural skybox uses the rotation of a directional light for the sun, even if it's disabled it still works.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement