Home Unreal Engine

Light Direction Vector Disabled in Pixel Shaders - Does a Solution Exist?

polycounter lvl 10
Offline / Send Message
paradoxical-pixel polycounter lvl 10
I've noticed that UE4 doesn't allow one to access the light direction vector when creating a pixel shader in the material editor.

I understand that we are now in the age of physically-based rendering, but I find this limitation to be quite problematic. I cannot, for instance, recreate the Heidrich–Seidel anisotropic distribution model inside of UE4 as the formula relies upon an incoming light direction vector.

I wonder if anyone has found a way around this restriction. Is it possible to access the light direction vector if one writes and compiles in HLSL, and then integrates the shader instructions into UE4 somehow? Has anyone else hit this problem and found a way around it?

Replies

Sign In or Register to comment.