diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-05-07 19:47:48 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-05-07 19:47:48 +0300 |
commit | 90663acfd586e9c3dbc769bc93a352f6bb2473bc (patch) | |
tree | 199f6619c090f830f25e4f2b54dbf0e7f0183f71 /source/blender/draw | |
parent | 014cdd3441be1adfb90ec3742bd2c12927cd20bd (diff) |
EEVEE: Fix missing function implementation for volumetric materials
This was leading to linking errors.
Fixes T97779 Regression: World volume noise stopped working
Diffstat (limited to 'source/blender/draw')
-rw-r--r-- | source/blender/draw/engines/eevee/shaders/closure_type_lib.glsl | 2 | ||||
-rw-r--r-- | source/blender/draw/engines/eevee/shaders/volumetric_vert.glsl | 20 |
2 files changed, 21 insertions, 1 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/closure_type_lib.glsl b/source/blender/draw/engines/eevee/shaders/closure_type_lib.glsl index 492b78a20b6..9698b5ea6f5 100644 --- a/source/blender/draw/engines/eevee/shaders/closure_type_lib.glsl +++ b/source/blender/draw/engines/eevee/shaders/closure_type_lib.glsl @@ -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); diff --git a/source/blender/draw/engines/eevee/shaders/volumetric_vert.glsl b/source/blender/draw/engines/eevee/shaders/volumetric_vert.glsl index b574e8cdb4c..ce863bdf660 100644 --- a/source/blender/draw/engines/eevee/shaders/volumetric_vert.glsl +++ b/source/blender/draw/engines/eevee/shaders/volumetric_vert.glsl @@ -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); +}
\ No newline at end of file |