aboutsummaryrefslogtreecommitdiff
path: root/assets/shaders/equirect_to_cubemap.slang
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-09-22 06:57:16 +0200
committerhachem <im@hachem.wtf>2026-09-22 06:57:16 +0200
commitd7c1ced08d5d78fcb239550404db4e67d4357a19 (patch)
tree9c0e218b096d138075cbf6a48e2562d33a8f94ed /assets/shaders/equirect_to_cubemap.slang
parent270eda6f558c972ec86ad0580f1d3d18afc83a94 (diff)
fix: windows supportHEADmain
Diffstat (limited to 'assets/shaders/equirect_to_cubemap.slang')
-rw-r--r--assets/shaders/equirect_to_cubemap.slang9
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;