mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-20 15:13:45 +00:00
WIP mode of guiSliderCtrl to be a filled rectangle instead of a textured UI Fixed bug with guiTextEditCtrl losing focus updating history passing malformed strings Updated WIP options menu Editor/Project settings WIP Updated editor theme to be consistent, and feed off the editor settings Updated popup menus to reference renamed profiles Added more in-progress modules for examples/stress testing
24 lines
No EOL
582 B
HLSL
24 lines
No EOL
582 B
HLSL
#include "shaders/common/postFx/postFx.hlsl"
|
|
#include "shadergen:/autogenConditioners.h"
|
|
|
|
uniform float accumTime;
|
|
TORQUE_UNIFORM_SAMPLER2D(backBuffer, 0);
|
|
uniform float intensity;
|
|
|
|
float4 main(PFXVertToPix IN) : TORQUE_TARGET0
|
|
{
|
|
float2 coords = IN.uv0;
|
|
float2 uv = IN.uv0;
|
|
|
|
coords = (coords - 0.5) * 2.0;
|
|
|
|
float coordDot = dot(coords, coords);
|
|
|
|
float2 uvG = uv - TORQUE_TEX2D(backBuffer, IN.uv0).xy * intensity * coords * coordDot;
|
|
|
|
float4 base = TORQUE_TEX2D(backBuffer, IN.uv0);
|
|
|
|
base.g = TORQUE_TEX2D(backBuffer, uvG).g;
|
|
|
|
return base;
|
|
} |