GregroxMun

Kerbin's Atmosphere Recoloration

Sep 27th, 2015
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. @Atmosphere
  2. {
  3. // effectively the ambient lighting color for all objects on the ground of this body (provides a slight tint)
  4. ambientColor = 0.175,0.18,0.195,1
  5.  
  6. // sets the waveLength property in the AtmosphereFromGround component of the scaled version
  7. // From my picking around in the KSP assemblies, it seems this is fed to the shader in this way:
  8. //
  9. // shader.invWaveLength = Color( 1 / r^4, 1 / g^4, 1 / b^4, 0.5);
  10. //
  11. // Obviously the code for the shader is not available, and I don't feel like picking through ARB shader IL so we'll need
  12. // to figure this out experiementally.
  13. lightColor = 0.175, 0.18, 0.195, 0.5
  14.  
  15. AtmosphereFromGround
  16. {
  17. outerRadiusMult = 1.032
  18. innerRadiusMult = 0.958
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment