Results 1 to 8 of 8

Thread: How to increase Sun size

  1. #1

    Default How to increase Sun size

    I've been doing some experiments and changed the OR sun colour. However, I can't change the sun size to my liking. I've attached before and after screenshots showing the change of sun colour. My modification has increased the sun size somewhat but I want it bigger. Please help.
    Attached Images Attached Images

  2. #2

    Default

    Quote Originally Posted by advut View Post
    I've been doing some experiments and changed the OR sun colour. However, I can't change the sun size to my liking. I've attached before and after screenshots showing the change of sun colour. My modification has increased the sun size somewhat but I want it bigger. Please help.
    How did you make it bigger?

  3. #3

    Default

    Wow!

    Will you share your results? I'd like to try that as well.

  4. #4

    Default

    Hi, sorry for the late response. Basically you have to edit the skyshader.fx file found in the OR's content folder. You can open this file with Notepad, Wordpad etc. In this file find "// Sun glow" section. There is a line under this which by default says this "skyColor += angleRcp * Fog.y;". Delete this line and put it like this...

    skyColor.r += angleRcp * Fog.w;
    skyColor.g += angleRcp * 0.399 * Fog.w;
    skyColor.b += angleRcp * 0.012 * Fog.w;


    Save it and load OR to test. Remember to only change things that I made bold. You can also put "Fog.y" instead of "Fog.w" which will create a smaller sun. In fact if you don't introduce a bit of fog via the <SHIFT+=> combo you better use "Fog.y" else you may think that the sun has disappeared. I use "Fog.w" because I always use a bit of fog. However, I want bigger sun than what Fog.w can create which is why I am asking for help.
    Last edited by advut; 09-19-2017 at 01:50 PM. Reason: More clarity

  5. #5
    Join Date
    Mar 2005
    Location
    Norwich, Norfolk, United Kingdom.
    Languages
    UK English
    Posts
    963

    Default

    Thanks for the tip, works well, sorry cannot help on size though.

    Intel i5 2400, Mobo ASUS P8H67, Win 7 Prof 64bit, 32GB Ram, Nvidia GTX960 4GB, SB Audigy, 6.25TB HDD's.

  6. #6

    Default Updated Info

    Just to update this thread, I've now figured out how to change the sun size. I just needed to change the angleRcp. Default Fog.y is enough now.

    I've also edited the rgb colour values to make it look better than my last edit.
    Attached Images Attached Images

  7. #7

    Default

    Quote Originally Posted by advut View Post
    Just to update this thread, I've now figured out how to change the sun size. I just needed to change the angleRcp. Default Fog.y is enough now.

    I've also edited the rgb colour values to make it look better than my last edit.
    Wow, that actually makes my eyes uncomfortable!

  8. #8

    Default

    Thanks markyisri.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •