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
|
// Copyright 2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#pragma once
#include "render/bsdfs/BSDF.ih"
#include "rkcommon/math/vec.ih"
OSPRAY_BEGIN_ISPC_NAMESPACE
struct Material;
struct ShadingContext;
struct DifferentialGeometry;
struct Ray;
struct Medium;
SYCL_EXTERNAL const varying BSDF *uniform MetallicPaint_getBSDF(
const uniform Material *uniform super,
uniform ShadingContext *uniform ctx,
const DifferentialGeometry &dg,
const Ray &ray,
const Medium ¤tMedium,
const uniform FeatureFlagsHandler &ffh);
SYCL_EXTERNAL BSDF_EvalRes MetallicPaint_BSDF_eval(
const varying BSDF *uniform super, const vec3f &wo, const vec3f &wi);
SYCL_EXTERNAL BSDF_SampleRes MetallicPaint_BSDF_sample(
const varying BSDF *uniform super,
const vec3f &wo,
const vec2f &s,
float ss);
OSPRAY_END_ISPC_NAMESPACE
|