Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/eevee/shaders/closure_eval_lib.glsl
| Context not available. | |||||
| #define ClosureInputDummy ClosureOutput | #define ClosureInputDummy ClosureOutput | ||||
| #define ClosureOutputDummy ClosureOutput | #define ClosureOutputDummy ClosureOutput | ||||
| #define ClosureEvalDummy ClosureOutput | #define ClosureEvalDummy ClosureOutput | ||||
| #define CLOSURE_EVAL_DUMMY ClosureOutput(vec3(0)) | #define CLOSURE_EVAL_DUMMY ClosureOutput(vec3(0), float(0.0)) | ||||
| #define CLOSURE_INPUT_Dummy_DEFAULT CLOSURE_EVAL_DUMMY | #define CLOSURE_INPUT_Dummy_DEFAULT CLOSURE_EVAL_DUMMY | ||||
| #define closure_Dummy_eval_init(cl_in, cl_common, cl_out) CLOSURE_EVAL_DUMMY | #define closure_Dummy_eval_init(cl_in, cl_common, cl_out) CLOSURE_EVAL_DUMMY | ||||
| #define closure_Dummy_planar_eval(cl_in, cl_eval, cl_common, data, cl_out) | #define closure_Dummy_planar_eval(cl_in, cl_eval, cl_common, data, cl_out) | ||||
| Context not available. | |||||
| /* Common cl_out struct used by most closures. */ | /* Common cl_out struct used by most closures. */ | ||||
| struct ClosureOutput { | struct ClosureOutput { | ||||
| vec3 radiance; | vec3 radiance; | ||||
| float AO; | |||||
| }; | }; | ||||
| /* Workaround for screenspace shadows in SSR pass. */ | /* Workaround for screenspace shadows in SSR pass. */ | ||||
| Context not available. | |||||