Closed shadielhajj closed 1 month ago
Nice! Question, have this been tested with geometry?
@patriciogonzalezvivo This works only with raymarching. But since it needs to be enabled explicitly (when the aforementioned #defines), current behaviour with meshes is unaffected (I did test it).
Sweet. than you!
Getting this error when running https://github.com/patriciogonzalezvivo/lygia_examples/blob/main/lighting_pbrSsS.frag
Any ideas ?
mmm... seems is affecting code using pbr()
Happening in https://github.com/patriciogonzalezvivo/lygia_examples/blob/main/lighting_pbr.frag
Found the issue. Is the call for #include "../raymarch/softShadow.glsl"
and #include "raymarch/ao.glsl"
. In point/directional lights and pbr function
@patriciogonzalezvivo ooops. Let me see what's happening.
All good : ) I started the raymarching pipeline in a very messy way
When using PBR with raymarching, soft shadows and ambient occlusion can be turned on with
#define RAYMARCH_SHADOWS
#define RAYMARCH_AO
Default raymarching material
Raymarched PBR
Raymarched PBR with soft shadows
Raymarched PBR with soft shadows and AO