Skip to content

Instantly share code, notes, and snippets.

@nikq
nikq / HLG_to_sRGB.hlsl
Created October 20, 2020 16:13
HLG checkup shader for MPC-BE
// $MinimumShaderProfile: ps_2_0
sampler s0 : register(s0);
// float ST2084_to_Y(float pixel) // pixel should be 0-1
// {
// const float pq_m1 = 0.1593017578125f; // ( 2610.0 / 4096.0 ) / 4.0;
// const float pq_m2 = 78.84375f; // ( 2523.0 / 4096.0 ) * 128.0;
// const float pq_c1 = 0.8359375f; // 3424.0 / 4096.0 or pq_c3 - pq_c2 + 1.0;
// const float pq_c2 = 18.8515625f; // ( 2413.0 / 4096.0 ) * 32.0;
@nikq
nikq / gist:466f274f8bc261c5d11a7eb15a6807a5
Last active April 22, 2018 14:40
Newbie's guide for nurburgring

ニュルをエンジョイする100の方法(業務関係ない版)

英語があまり通じません。簡単なドイツ語を覚えておこう!

びっくりするほどカタカナ発音で通じます。安心。

  • 数詞
    • eins : 1 アイン
  • zwei : 2 ツヴァイ