diff options
Diffstat (limited to 'assets/shaders/equirect_to_cubemap.slang')
| -rw-r--r-- | assets/shaders/equirect_to_cubemap.slang | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/assets/shaders/equirect_to_cubemap.slang b/assets/shaders/equirect_to_cubemap.slang index 5b4caff..9316646 100644 --- a/assets/shaders/equirect_to_cubemap.slang +++ b/assets/shaders/equirect_to_cubemap.slang @@ -1,8 +1,7 @@ -// equirectangular HDRI -> cubemap face projection. NOTE: the OpenGL path uses the -// hand-written assets/shaders/EquirectToCubemap.glsl instead; this Slang version -// feeds the Vulkan cubemap bake (vulkan_cubemap.cpp), which binds the view / -// projection as a $Globals UBO. kept as loose `uniform` globals (not a -// ConstantBuffer) so both paths bind them the same way. +// equirectangular HDRI -> cubemap face projection. both bakes use it: the Vulkan +// one (vulkan_cubemap.cpp) binds view / projection as a $Globals UBO, the OpenGL +// one (texture.cpp) sets the flattened u_projection / u_view uniforms. kept as +// loose `uniform` globals (not a ConstantBuffer) so both paths bind them the same way. uniform float4x4 u_projection; uniform float4x4 u_view; |
