mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-10 22:05:06 +00:00
effect: Minor formatting changes
This commit is contained in:
parent
4dbf414214
commit
6cc1be1b0d
2 changed files with 3 additions and 3 deletions
|
@ -27,7 +27,7 @@ VertDataOut VSDefault(VertDataIn v_in) {
|
|||
// ************************************************************************** //
|
||||
// RGB <-> YUV
|
||||
// ************************************************************************** //
|
||||
float4 RGBtoYUV(float4 rgba, float3x3 yuv) {
|
||||
float4 RGBtoYUV(float4 rgba, float3x3 yuv) {
|
||||
return float4(
|
||||
rgba.r * yuv._m00 + rgba.g * yuv._m01 + rgba.b * yuv._m02,
|
||||
rgba.r * yuv._m10 + rgba.g * yuv._m11 + rgba.b * yuv._m12,
|
||||
|
|
|
@ -41,10 +41,10 @@ float4 PSDisplace(VertDataOut v_in) : TARGET
|
|||
float2 signdisp = disp * float2(281474976710656.0, 281474976710656.0);
|
||||
float2 signs = float2(clamp(disp.r, -1.0, 1.0), clamp(disp.g, -1.0, 1.0));
|
||||
disp = (floor(abs(disp * 127.0)) / 127.0) * signs;
|
||||
|
||||
|
||||
float2 uv = v_in.uv + (disp * texelScale * displacementScale);
|
||||
float4 rgba = image.Sample(textureSampler, uv);
|
||||
|
||||
|
||||
return rgba;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue