Revert "EEVEE: AOVs not same as cycles."

This reverts commit 730a46e87d.
This commit is contained in:
Jeroen Bakker 2021-06-02 16:56:10 +02:00
parent 730a46e87d
commit 2489f72d79
3 changed files with 4 additions and 5 deletions

@ -1 +1 @@
Subproject commit cdabac54c4fe7c6f8df125814442762aa539172b
Subproject commit 27fe7f3a4f964b53af436c4da4ddea337eff0c7e

View File

@ -79,7 +79,7 @@ bool EEVEE_renderpasses_only_first_sample_pass_active(EEVEE_Data *vedata)
* type the rest of the bits are used for the name hash. */
int EEVEE_renderpasses_aov_hash(const ViewLayerAOV *aov)
{
int hash = BLI_hash_string(aov->name) << 1;
int hash = BLI_hash_string(aov->name);
SET_FLAG_FROM_TEST(hash, aov->type == AOV_TYPE_COLOR, EEVEE_AOV_HASH_COLOR_TYPE_MASK);
return hash;
}

View File

@ -43,9 +43,8 @@ static int node_shader_gpu_output_aov(GPUMaterial *mat,
{
GPUNodeLink *outlink;
NodeShaderOutputAOV *aov = (NodeShaderOutputAOV *)node->storage;
/* Keep in sync with `renderpass_lib.glsl#render_pass_aov_hash` and
* `EEVEE_renderpasses_aov_hash`. */
unsigned int hash = BLI_hash_string(aov->name) << 1;
/* Keep in sync with `renderpass_lib.glsl#render_pass_aov_hash`. */
unsigned int hash = BLI_hash_string(aov->name) & ~1;
GPU_stack_link(mat, node, "node_output_aov", in, out, &outlink);
GPU_material_add_output_link_aov(mat, outlink, hash);