Jump to content

God Rays ?


Roland
 Share

Recommended Posts

Looks like this with these adjustables:

 

uniform float fExposure=0.26;
uniform float fDecay=0.9999;
uniform float fDensity=0.8;
uniform float fWeight=0.24;
uniform float fClamp=1.0;
const int iSamples = 30;

 

Video is private

System:

Linux Mint 17 ( = Ubuntu 14.04 with cinnamon desktop ) Ubuntu 14.04, AMD HD 6850, i5 2500k

Link to comment
Share on other sites

Here is the full daynight shader cycle with godrays and an example map.

Several bugs including the wierd offset for the sun was fixed, also lensflare shader inpout is ready, but the lensflare shader isn't yet.

 

Godrays settings have several tweaks wich is read from camara:GetKeyvalue(), easily set from your app in lua or cpp.

 

 --godray
local fExposure=camera:GetKeyValue("godray_fExposure","0.3")
local fDecay= camera:GetKeyValue("godray_fDecay","0.97")
local fDensity= camera:GetKeyValue("godray_fDensity","0.6")
local fWeight= camera:GetKeyValue("godray_fWeight","0.24")
local fClamp= camera:GetKeyValue("godray_fClamp","1.0")
local fWhiteOnly=camera:GetKeyValue("godray_fWhiteOnly","0")

 

if fWhiteOnly is set to 1 it will not bleed colors. But I kinda like non white.

 

Forum only allows 5 mb uploads so here is a dropbox link :

 

EDIT: soon in the ws.

  • Upvote 7

HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB

Link to comment
Share on other sites

  • 3 months later...
  • 2 weeks later...

Im not geting the godray effect here.

 

I have to put this where?

 

--godray
    local fExposure=camera:GetKeyValue("godray_fExposure","0.3")
    local fDecay=   camera:GetKeyValue("godray_fDecay","0.97")
    local fDensity= camera:GetKeyValue("godray_fDensity","0.6")
    local fWeight=  camera:GetKeyValue("godray_fWeight","0.24")
    local fClamp=   camera:GetKeyValue("godray_fClamp","1.0")
    local fWhiteOnly=camera:GetKeyValue("godray_fWhiteOnly","0")

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...