stk-code_catmod/data/shaders/utils
Deve bc6ff38b22 Simplify light factor when advanced lighting is disabled.
In this case only diffuseMatColor really matters, other values are constant.

It improves performance on GLES renderer and it's also noticeably faster for GL on desktop.
For example:
- fps increased for me from 60 to 69 on Hacienda with intel HD 4000
- from 43 to 49 on lighthouse

There is much less difference on nvidia graphics card, but still it gives small performance improvement.
2017-08-06 22:18:18 +02:00
..
decodeNormal.frag Factorize DecodeNormal from misc shaders. 2014-03-21 18:17:21 +01:00
DiffuseBRDF.frag Clean up sunlight shader + factorize diffusebrdf 2014-12-14 21:39:18 +01:00
DiffuseIBL.frag Factorise SH coefficient in an UBO 2014-12-15 00:18:03 +01:00
encode_normal.frag Factorize EncodeNormal from Pass1 shaders. 2014-03-21 18:10:54 +01:00
getCIEXYZ.frag Fix precision issue in CIE/RGB conversions 2015-01-12 20:05:16 +01:00
getLightFactor.frag Simplify light factor when advanced lighting is disabled. 2017-08-06 22:18:18 +02:00
getPosFromUVDepth.frag Some fixes 2016-06-27 13:39:20 +02:00
getRGBfromCIEXxy.frag Fix precision issue in CIE/RGB conversions 2015-01-12 20:05:16 +01:00
getworldmatrix.vert Avoid some useless computation in some vert shaders 2014-09-05 23:41:12 +02:00
rgb_conversion.frag Make shaders run as efficient as possible 2016-06-27 13:49:27 +08:00
SpecularBRDF.frag Port also other shaders to use #stk_include 2016-06-27 13:11:27 +02:00
SpecularIBL.frag When there are 8 lod level, 7 is the max 2015-01-15 19:52:48 +01:00
SunMRP.frag Factorise MRP 2014-12-27 03:22:06 +01:00