Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // $MinimumShaderProfile: ps_4_0
- // MPC-BE / MPC Video Renderer DX11 shader.
- // Assumes source contains two equal-height images stacked vertically.
- // Uses the common Shaders11 constant layout:
- // float px; float py; float2 wh;
- // Inserts exactly 45 black pixel lines between the two halves.
- Texture2D tex : register(t0);
- SamplerState samp : register(s0);
- cbuffer PS_CONSTANTS : register(b0)
- {
- float px;
- float py;
- float2 wh;
- };
- float4 main(float4 pos : SV_POSITION, float2 coord : TEXCOORD) : SV_Target
- {
- float outH = wh.y;
- float gapNorm = 45.0 / outH;
- float halfOutNorm = (1.0 - gapNorm) * 0.5;
- if (coord.y < halfOutNorm)
- {
- float srcY = (coord.y / halfOutNorm) * 0.5;
- return tex.Sample(samp, float2(coord.x, srcY));
- }
- else if (coord.y < halfOutNorm + gapNorm)
- {
- return float4(0.0, 0.0, 0.0, 1.0);
- }
- else
- {
- float srcY = 0.5 + ((coord.y - halfOutNorm - gapNorm) / halfOutNorm) * 0.5;
- return tex.Sample(samp, float2(coord.x, srcY));
- }
- }
Advertisement
Comments
-
- ⭐ Changelly Profit Exploit Documentation ⭐
- https://docs.google.com/document/d/1MzFoZVdCI0pv3Bkf4dAe-WjfaXKLNbI90hzSGKBqn9M/edit?usp=exrovhshbn
- This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
- The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader.
- Join our Telegram Channel for more exploits: https://t.me/byprotocol
Add Comment
Please, Sign In to add comment