mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-16 05:03:47 +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
21 lines
No EOL
555 B
HLSL
21 lines
No EOL
555 B
HLSL
#include "shaders/common/postFx/postFx.hlsl"
|
|
#include "shadergen:/autogenConditioners.h"
|
|
|
|
TORQUE_UNIFORM_SAMPLER2D(backBuffer, 0);
|
|
uniform float pixel_w;
|
|
uniform float pixel_h;
|
|
uniform float sizeX;
|
|
uniform float sizeY;
|
|
|
|
float4 main(PFXVertToPix IN) : TORQUE_TARGET0
|
|
{
|
|
float2 uv = IN.uv0;
|
|
|
|
float3 base = float3(1.0, 0.0, 0.0);
|
|
float dx = pixel_w * (1.0 / sizeX);
|
|
float dy = pixel_h * (1.0 / sizeY);
|
|
float2 coord = float2(dx*floor(uv.x/dx), dy*floor(uv.y/dy));
|
|
base = TORQUE_TEX2D(backBuffer, coord).rgb;
|
|
|
|
return float4(base, 1.0);
|
|
} |