Alexander Szpakowski
|
3047321e71
|
Use initializer list copy constructor instead of per-element copying for shader source list in ShaderEffect constructor
|
2012-12-23 00:29:23 -04:00 |
|
Alexander Szpakowski
|
83204c5dc5
|
ShaderEffects now take a dynamically sized list of source codes instead of one vertex and one fragment shader string
|
2012-12-22 22:47:07 -04:00 |
|
Alexander Szpakowski
|
b55de47fb9
|
misc cleanup
|
2012-12-22 05:37:34 -04:00 |
|
Alexander Szpakowski
|
0c525ebb92
|
shaders now use a static vector of counters for each texture unit to help keep track of completely free texture units
|
2012-12-22 01:35:36 -04:00 |
|
Alexander Szpakowski
|
79fa42d207
|
made ShaderEffects individully handle texture units for sent images/canvases, added GL helper function for quickly binding a texture to a specific texture unit, hopefully made ShaderEffects load and unload volatile better
|
2012-12-22 00:29:11 -04:00 |
|
Alexander Szpakowski
|
16f925affa
|
improved GL texture binding api to take texture units into consideration
|
2012-12-21 20:35:32 -04:00 |
|
Alexander Szpakowski
|
5626b74b79
|
reduced unnecessary usage of glUseProgram, shadereffect is now properly detached in unloadVolatile and reattached if necessary in loadVolatile, made current and max texture units static to prevent different shaders from overwriting the value of different texture units
|
2012-12-21 17:43:47 -04:00 |
|
Alexander Szpakowski
|
5252ed28cd
|
changed shadereffect texture image unit counter and map to be non-static, get max texture units from max combined TIUs instead of max fragment shader TIUs, added the current MVP matrix as an argument to the vertex shader transform function, reduced code duplication in ShaderEffect::sendImage and sendCanvas
|
2012-12-21 05:03:50 -04:00 |
|
Alexander Szpakowski
|
0611234067
|
changed PixelEffect name to ShaderEffect, added lua-side support for vert/frag shader combinations with love.graphics.newShaderEffect, added tentative support for single-file vertex+fragment shaders
|
2012-12-20 21:51:31 -04:00 |
|