Fix #116031: EEVEE-Next: Nishita sky does not work

Add missing sky texture binding to the new draw manager.
This commit is contained in:
Miguel Pozo
2023-12-18 19:36:44 +01:00
parent 0681180413
commit 89ec7f5360

View File

@@ -908,6 +908,10 @@ template<class T> inline void PassBase<T>::material_set(Manager &manager, GPUMat
/* Color Ramp */
bind_texture(tex->sampler_name, *tex->colorband);
}
else if (tex->sky) {
/* Sky */
bind_texture(tex->sampler_name, *tex->sky, tex->sampler_state);
}
}
GPUUniformBuf *ubo = GPU_material_uniform_buffer_get(material);