MCPcopy Create free account
hub / github.com/atraczyk/2d-engine / R_updateUniforms

Function R_updateUniforms

engine/src/game.cpp:727–741  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

725}
726
727void R_updateUniforms()
728{
729 glUseProgramObjectARB(game.shaders.curvature);
730 glUniform1f(game.shaders.uniformCurvature, game.shaders.curvValue);
731 glUseProgramObjectARB(game.shaders.horizontalBlur);
732 glUniform1f(game.shaders.uniformHBlurSize,
733 game.shaders.blurValue / game.clientRect.w);
734 glUseProgramObjectARB(game.shaders.verticalBlur);
735 glUniform1f(game.shaders.uniformVBlurSize,
736 game.shaders.blurValue / game.clientRect.h);
737 glUseProgramObjectARB(game.shaders.bilinear);
738 glUniform1f(game.shaders.uniformHBilinearSize, 2.0f / game.sceneRect.w);
739 glUniform1f(game.shaders.uniformVBilinearSize, 2.0f / game.sceneRect.h);
740 glUseProgramObjectARB(NULL);
741}
742
743void I_updateGameInput(Input* pinput)
744{

Callers 1

P_runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected