First of all, I am not asking about environment map + IBL, I know that works.
I am asking about this (from the Blinn shader):
This environment channel is linked to output node tagged with environment usage
:
And it's sampled here, but this won't work right with a simple NxN texture:
Problem, the cubemap is past as-is, that's NOT how cubemap works in OpenGL. Whatever I pass (cubemap, HDR environment, simple gradient), only one face will be loaded and only one face will show up in reflection.
So, does SD environment channel actually works? I don't think so.
Reason I need this: I am doing some stylized NPR texturing, I needed this reflection to work (pure ambient color isn't enough for my case, PBR + IBL isn't what I am looking for).
(Of course I could go in and modify the whole shader but the problem took place at the way environment texture is loaded, so my workaround will involve not using samplerCube)
Replies
Hope this helps someone in the future.