Roland Posted August 30, 2014 Posted August 30, 2014 Simple question? Is there any god ray shader hidden somewhere in Leadwerks Quote Roland Strålberg Website: https://rstralberg.com
macklebee Posted August 30, 2014 Posted August 30, 2014 i am sure shadmar is holding out on us , but as far as I know there isn't an inherent one. Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel
shadmar Posted August 31, 2014 Posted August 31, 2014 I dont believe in god or his rays But yes I have one, depending on what you are combining it with. Bloom? Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB
Roland Posted August 31, 2014 Author Posted August 31, 2014 Yep. Bloom and rays Quote Roland Strålberg Website: https://rstralberg.com
shadmar Posted September 1, 2014 Posted September 1, 2014 I got one ready to go with the daynight cycle and bloom. 20 passes at 1/4 resolution is hardly noticable on the fps. However I feel we should probably have some sort of lensflare to go with this. Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB
beo6 Posted September 1, 2014 Posted September 1, 2014 If i remember correctly i have seen a lensflare class in the C++ headers of Leadwerks. Not sure if that works already since it is obviously undocumented. Quote
shadmar Posted September 1, 2014 Posted September 1, 2014 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; 2 Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB
Guppy Posted September 1, 2014 Posted September 1, 2014 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 Quote System: Linux Mint 17 ( = Ubuntu 14.04 with cinnamon desktop ) Ubuntu 14.04, AMD HD 6850, i5 2500k
shadmar Posted September 1, 2014 Posted September 1, 2014 was, thanks Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB
Roland Posted September 1, 2014 Author Posted September 1, 2014 Looks just great. Is this available somewhere? Quote Roland Strålberg Website: https://rstralberg.com
shadmar Posted September 2, 2014 Posted September 2, 2014 Looks just great. Is this available somewhere? I'll post it here later today. 2 Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB
shadmar Posted September 3, 2014 Posted September 3, 2014 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. 7 Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB
Roland Posted September 3, 2014 Author Posted September 3, 2014 Thanks a lot shad. What would we do without you Here is my result using the shader. Great work of you. Again. Many thanks 1 Quote Roland Strålberg Website: https://rstralberg.com
nick.ace Posted September 3, 2014 Posted September 3, 2014 That looks amazing shadmar! You should put it in the Workshop and bump off all the recent comment spammers there! XD No, but seriously, it looks amazing! Quote
Vaelek Posted January 4, 2015 Posted January 4, 2015 This is very awesome! Is there a fix for the black square that is shown when firing at the sky? Also it would be very cool if the ratio of day to night could be adjusted, but without making the stars move un naturally fast. Quote
Ameshi Posted January 9, 2015 Posted January 9, 2015 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") Quote
shadmar Posted January 19, 2015 Posted January 19, 2015 Godray shader is now in the ws post effect pack, it will also locate any directional light itself and it's direction. 1 Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB
Recommended Posts
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.