Browse Source

libobs: Remove DrawSrgbDecompressPremultiplied

Technique is no longer referenced, and doesn't seem useful.
jpark37 4 years ago
parent
commit
4e6765a01b
2 changed files with 0 additions and 34 deletions
  1. 0 17
      libobs/data/default.effect
  2. 0 17
      libobs/data/default_rect.effect

+ 0 - 17
libobs/data/default.effect

@@ -69,14 +69,6 @@ float4 PSDrawSrgbDecompress(VertInOut vert_in) : TARGET
 	return rgba;
 	return rgba;
 }
 }
 
 
-float4 PSDrawSrgbDecompressPremultiplied(VertInOut vert_in) : TARGET
-{
-	float4 rgba = image.Sample(def_sampler, vert_in.uv);
-	rgba.rgb = max(float3(0.0, 0.0, 0.0), rgba.rgb / rgba.a);
-	rgba.rgb = srgb_nonlinear_to_linear(rgba.rgb);
-	return rgba;
-}
-
 technique Draw
 technique Draw
 {
 {
 	pass
 	pass
@@ -112,12 +104,3 @@ technique DrawSrgbDecompress
 		pixel_shader  = PSDrawSrgbDecompress(vert_in);
 		pixel_shader  = PSDrawSrgbDecompress(vert_in);
 	}
 	}
 }
 }
-
-technique DrawSrgbDecompressPremultiplied
-{
-	pass
-	{
-		vertex_shader = VSDefault(vert_in);
-		pixel_shader  = PSDrawSrgbDecompressPremultiplied(vert_in);
-	}
-}

+ 0 - 17
libobs/data/default_rect.effect

@@ -47,14 +47,6 @@ float4 PSDrawSrgbDecompress(VertInOut vert_in) : TARGET
 	return rgba;
 	return rgba;
 }
 }
 
 
-float4 PSDrawSrgbDecompressPremultiplied(VertInOut vert_in) : TARGET
-{
-	float4 rgba = image.Sample(def_sampler, vert_in.uv);
-	rgba.rgb = max(float3(0.0, 0.0, 0.0), rgba.rgb / rgba.a);
-	rgba.rgb = srgb_nonlinear_to_linear(rgba.rgb);
-	return rgba;
-}
-
 technique Draw
 technique Draw
 {
 {
 	pass
 	pass
@@ -81,12 +73,3 @@ technique DrawSrgbDecompress
 		pixel_shader  = PSDrawSrgbDecompress(vert_in);
 		pixel_shader  = PSDrawSrgbDecompress(vert_in);
 	}
 	}
 }
 }
-
-technique DrawSrgbDecompressPremultiplied
-{
-	pass
-	{
-		vertex_shader = VSDefault(vert_in);
-		pixel_shader  = PSDrawSrgbDecompressPremultiplied(vert_in);
-	}
-}