Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PL(5): fragment shader GLSL source:
- PL(5): [ 1] #version 450
- PL(5): [ 2] #extension GL_ARB_uniform_buffer_object : enable
- PL(5): [ 3] #extension GL_ARB_texture_gather : enable
- PL(5): [ 4] layout(binding=0) uniform sampler2D _osd_tex_0_0;
- PL(5): [ 5] layout(std140, binding=1) uniform _UBO_12_0 {
- PL(5): [ 6] layout(offset=0) mat3 _cms_matrix_10_0;
- PL(5): [ 7] };
- PL(5): [ 8] layout(location=1) in vec2 coord;
- PL(5): [ 9] layout(location=0) out vec4 out_color;
- PL(5): [ 10]
- PL(5): [ 11] const float _const_1_0 = 0.05958483740687370300;
- PL(5): [ 12] const float _const_2_0 = 0.87031054496765136718;
- PL(5): [ 13] const float _const_3_0 = 0.25000000000000000000;
- PL(5): [ 14] const float _const_4_0 = 1.00000000000000000000;
- PL(5): [ 15] const float _dst_range_5_0 = 4.92608356475830078125;
- PL(5): [ 16] const float _src_floor_6_0 = 0.00100000004749745130;
- PL(5): [ 17] const float _dst_peak_7_0 = 4.92610836029052734375;
- PL(5): [ 18] const float _dst_floor_8_0 = 0.00002463054079271387;
- PL(5): [ 19] const float _const_9_0 = 1.00000000000000000000;
- PL(5): [ 20] vec4 _main_13_0() {
- PL(5): [ 21] // overlay
- PL(5): [ 22] vec4 color = texture(_osd_tex_0_0, coord);
- PL(5): [ 23] // pl_shader_decode_color
- PL(5): [ 24] {
- PL(5): [ 25] }
- PL(5): [ 26] // pl_shader_color_map
- PL(5): [ 27] {
- PL(5): [ 28] // pl_shader_decode_color
- PL(5): [ 29] {
- PL(5): [ 30] }
- PL(5): [ 31] // pl_shader_linearize
- PL(5): [ 32] color.rgb = max(color.rgb, 0.0);
- PL(5): [ 33] color.rgb = vec3(_const_2_0) * pow(color.rgb + vec3(_const_1_0), vec3(2.4));
- PL(5): [ 34] // pl_shader_tone_map
- PL(5): [ 35] {
- PL(5): [ 36] float sig_peak = _const_4_0;
- PL(5): [ 37] float sig_avg = _const_3_0;
- PL(5): [ 38] color.rgb = vec3(1.0/_dst_range_5_0) * (color.rgb - vec3(_src_floor_6_0));
- PL(5): [ 39] sig_peak = (sig_peak - _src_floor_6_0) / _dst_range_5_0;
- PL(5): [ 40] vec3 sig = clamp(color.rgb, 0.0, sig_peak);
- PL(5): [ 41] vec3 sig_orig = color.rgb;
- PL(5): [ 42] sig *= min(_const_9_0 / sig_peak, 1.0);
- PL(5): [ 43] color.rgb = sig;
- PL(5): [ 44] color.rgb = vec3(_dst_range_5_0) * color.rgb + vec3(_dst_floor_8_0);
- PL(5): [ 45] }
- PL(5): [ 46] color.rgb = _cms_matrix_10_0 * color.rgb;
- PL(5): [ 47] // pl_shader_delinearize
- PL(5): [ 48] color.rgb = max(color.rgb, 0.0);
- PL(5): [ 49] color.rgb *= vec3(1.0/49.26108374384236298501);
- PL(5): [ 50] color.rgb = pow(color.rgb, vec3(0.15930175781250000000));
- PL(5): [ 51] color.rgb = (vec3(0.83593750000000000000) + vec3(18.85156250000000000000) * color.rgb)
- PL(5): [ 52] / (vec3(1.0) + vec3(18.68750000000000000000) * color.rgb);
- PL(5): [ 53] color.rgb = pow(color.rgb, vec3(78.84375000000000000000));
- PL(5): [ 54] // pl_shader_encode_color
- PL(5): [ 55] {
- PL(5): [ 56] }
- PL(5): [ 57] }
- PL(5): [ 58] // pl_shader_encode_color
- PL(5): [ 59] {
- PL(5): [ 60] }
- PL(5): [ 61] vec4 _orig_color_11_0 = color;
- PL(5): [ 62] color = vec4(0.0, 0.0, 0.0, 1.0);
- PL(5): [ 63] color[0] = _orig_color_11_0[0];
- PL(5): [ 64] color[1] = _orig_color_11_0[1];
- PL(5): [ 65] color[2] = _orig_color_11_0[2];
- PL(5): [ 66] color.a = _orig_color_11_0.a;
- PL(5): [ 67] return color;
- PL(5): [ 68] }
- PL(5): [ 69]
- PL(5): [ 70] void main() {
- PL(5): [ 71] out_color = _main_13_0();
- PL(5): [ 72] }
Advertisement
Add Comment
Please, Sign In to add comment