EEVEE: Fix missing function implementation for volumetric materials

This was leading to linking errors.

Fixes T97779 Regression: World volume noise stopped working
This commit is contained in:
Clément Foucault
2022-05-07 18:47:48 +02:00
parent 014cdd3441
commit 90663acfd5
2 changed files with 21 additions and 1 deletions

View File

@@ -49,7 +49,7 @@ struct Closure {
#ifndef GPU_METAL
/* Prototype */
Closure nodetree_exec();
vec4 closure_to_rgba(Closure);
vec4 closure_to_rgba(Closure cl);
void output_aov(vec4 color, float value, uint hash);
vec3 coordinate_camera(vec3 P);
vec3 coordinate_screen(vec3 P);

View File

@@ -57,3 +57,23 @@ float F_eta(float a, float b)
{
return 0.0;
}
vec3 coordinate_camera(vec3 P)
{
return vec3(0.0);
}
vec3 coordinate_screen(vec3 P)
{
return vec3(0.0);
}
vec3 coordinate_reflect(vec3 P, vec3 N)
{
return vec3(0.0);
}
vec3 coordinate_incoming(vec3 P)
{
return vec3(0.0);
}