Skip to content
Snippets Groups Projects

Resolve "Voxel cone tracing"

Merged Ghost User requested to merge 82-voxel-cone-tracing into develop
2 files
+ 41
36
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -2,7 +2,7 @@
#extension GL_ARB_separate_shader_objects : enable
#extension GL_GOOGLE_include_directive : enable
#include "shadowMapping.inc"
#include "lightInfo.inc"
layout(set=0, binding=0) uniform LightInfoBuffer {
LightInfo lightInfo;
@@ -14,6 +14,6 @@ layout(location = 0) in vec4 passPos;
void main() {
float z = passPos.z / passPos.w;
vec2 zWarped = applyDepthWarp(z, lightInfo.warps);
outMoments = vec4(zWarped, zWarped*zWarped);
float z2 = z*z;
outMoments = vec4(z, z2, z2*z, z2*z2);
}
\ No newline at end of file
Loading