1418fb7e83Changed the SM2.0 tradeoffs to allow 4-sample shadow mapping and to verify that shaders again work on GPU's without hardware shadow compare (eg. Radeon 9800.) Removed unnecessary shader code & simplified the LitSolid & light volume shaders.
11 years ago
Lasse Öörni
c3425334a3Switch forward light calculations back to world space instead of tangent space to avoid light attenuation bugs when TBN matrix is not orthogonal. Shader code becomes simpler and more similar between forward and deferred, and number of vertex shader variations is reduced, but disadvantage is a more complex pixel shader which requires disabling expensive features on SM2.0 to avoid exceeding the arithmetic instruction limit. Fix cube mapped point light displaying the cube map upside down. Closes #276.
11 years ago
Lasse Öörni
d7251f5f25Fixed GLSL deferred lighting. Added profiling block for Renderer::GetShader().