File: registration.cpp

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 (53 lines) | stat: -rw-r--r-- 1,647 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// Copyright 2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0

#include "ao/AORenderer.h"
#include "debug/DebugRenderer.h"
#include "pathtracer/PathTracer.h"
#include "scivis/SciVis.h"

#include "materials/Alloy.h"
#include "materials/CarPaint.h"
#include "materials/Glass.h"
#include "materials/Luminous.h"
#include "materials/Metal.h"
#include "materials/MetallicPaint.h"
#include "materials/Mix.h"
#include "materials/OBJ.h"
#include "materials/Plastic.h"
#include "materials/Principled.h"
#include "materials/ThinGlass.h"
#include "materials/Velvet.h"
using namespace ospray::pathtracer;

namespace ospray {

void registerAllRenderers()
{
  Renderer::registerType<DebugRenderer>("debug");
  Renderer::registerType<PathTracer>("pathtracer");
  Renderer::registerType<SciVis>("scivis");
  Renderer::registerType<AORenderer>("ao");
}

void registerAllMaterials()
{
  Material::registerType<Alloy>("alloy");
  Material::registerType<CarPaint>("carPaint");
  Material::registerType<Glass>("glass");
  Material::registerType<Luminous>("luminous");
  Material::registerType<Metal>("metal");
  Material::registerType<MetallicPaint>("metallicPaint");
#ifndef OSPRAY_TARGET_SYCL
  // Mix material isn't going to work on the GPU b/c we can't have
  // recursive calls and it may nest MultiBSDFs. Needs some special treatment
  Material::registerType<MixMaterial>("mix");
#endif
  Material::registerType<OBJMaterial>("obj");
  Material::registerType<Plastic>("plastic");
  Material::registerType<Principled>("principled");
  Material::registerType<ThinGlass>("thinGlass");
  Material::registerType<Velvet>("velvet");
}

} // namespace ospray