Lasse Öörni
|
1418fb7e83
Changed 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
|
c3425334a3
Switch 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
|
abc6fcd8b8
Shader precaching mechanism. Call Graphics::BeginDumpShaders() or use the engine command line parameter -ds <file> to create a shader dump file of the variations that are loaded during program run, and Graphics::PrecacheShaders() to load the dump file.
|
12 years ago |
Lasse Öörni
|
caf080ecbb
Initial refactoring of Direct3D9 shaders. ShaderCompiler removed. Bytecode not cached into files yet.
|
12 years ago |
Lasse Öörni
|
196c2158b8
Cleaned up diffuse lighting shader code.
|
13 years ago |
Lasse Öörni
|
e0a0b184e6
Shadow code cleanup in shaders.
|
13 years ago |
Lasse Öörni
|
682714f400
Cleanup of GLSL shadow code, try using texture2D instead of texture2DProj on OpenGL ES.
|
13 years ago |
Lasse Öörni
|
89bc2e3a39
Moved GetShadowFade() into GetDirShadow() in the HLSL shaders.
|
13 years ago |
Lasse Öörni
|
e8d549ef7e
Shader refactoring. Renamed the lit object ubershader as LitSolid; it now handles also deferred rendering.
|
13 years ago |
Lasse Öörni
|
5507b006be
Shader load/compile refactoring. Removed shader source code from the SourceAssets directory and moved to Bin/CoreData/Shaders.
|
13 years ago |