File: spectrum.ispc

package info (click to toggle)
ospray 3.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,048 kB
  • sloc: cpp: 80,569; ansic: 951; sh: 805; makefile: 170; python: 69
file content (39 lines) | stat: -rw-r--r-- 709 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright 2009 Intel Corporation
// SPDX-License-Identifier: Apache-2.0

#include "math/spectrum.ih"

// convolutions of: normalization * D65 * CIE_XYZ * xyz2sRGB

OSPRAY_BEGIN_ISPC_NAMESPACE

#ifdef ISPC
spectrum spectrum_sRGB_r = {0.0598548f,
    -0.0234574f,
    -0.220138f,
    -0.238902f,
    0.316327f,
    0.738315f,
    0.323302f,
    0.0446981f};

spectrum spectrum_sRGB_g = {-0.0567346f,
    -0.0160361f,
    0.223861f,
    0.531185f,
    0.337221f,
    0.0149718f,
    -0.0296053f,
    -0.00486239f};

spectrum spectrum_sRGB_b = {0.420693f,
    0.616597f,
    0.0796766f,
    -0.0496266f,
    -0.0473149f,
    -0.0167536f,
    -0.00295686f,
    -0.000314818f};
#endif

OSPRAY_END_ISPC_NAMESPACE