Modding, Mission Design, and Coding > Test Builds

Deferred Lighting and soft shadows

(1/61) > >>

Swifty:
Based off of Trunk 11046. Enjoy and please report bugs.

http://www.mediafire.com/download/86vea6cp9af7rxp/shadows_11296_r3.zip

Code:

https://github.com/SamuelCho/Freespace-Open-Swifty/tree/shader_transform_deferred

Kobrar44:
So this line from def_files:
3329    +"   gl_FragData[0].rgb += pow(NdotHV, 80.0) * SPEC_INTENSITY_POINT * specfactor * speclightcolor * attenuation;\n"
basically means -ogl_spec will no longer work?

Swifty:
Specular should work. Is there a reason why that line would make it no longer work?

Kobrar44:
-ogl_spec parameter used to replace the fixed 80.0 value in specular equation through gl_FrontMaterial.shininess
But TBH I don't really follow all those #ifdefs yet, I may have missed something.

Swifty:
I see. That's definitely an oversight in the deferred light shader. The specular factor should still work in the forward light shader though.

Navigation

[0] Message Index

[#] Next page

Go to full version