File: VolumetricModel.ih

package info (click to toggle)
ospray 3.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 10,040 kB
  • sloc: cpp: 80,569; ansic: 951; sh: 805; makefile: 171; python: 69
file content (37 lines) | stat: -rw-r--r-- 884 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
// Copyright 2009 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#ifdef OSPRAY_ENABLE_VOLUMES

#pragma once

#include "../common/DifferentialGeometry.ih"
#include "../common/Ray.ih"
#include "Volume.ih"
#include "transferFunction/TransferFunctionShared.h"
// c++ shared
#include "VolumetricModelShared.h"

OSPRAY_BEGIN_ISPC_NAMESPACE

inline void VolumetricModel_postIntersect(const VolumetricModel *uniform self,
    varying DifferentialGeometry &dg,
    const varying Ray &ray,
    uniform int64)
{
  dg.Ng = make_vec3f(0.f);
  dg.Ns = make_vec3f(0.f);
  dg.dPds = make_vec3f(0.f);
  dg.dPdt = make_vec3f(0.f);
  dg.st = make_vec2f(0);
  dg.color = make_vec4f(0.f);
  dg.primID = 0;
  dg.objID =
      (self->userID == RTC_INVALID_GEOMETRY_ID) ? ray.geomID : self->userID;
  dg.areaPDF = 0.f;
  dg.epsilon = 0.f;
  dg.material = NULL;
}

OSPRAY_END_ISPC_NAMESPACE

#endif