I don't need the extra field on the GPU because Bidir doesn't work on the GPU (I can just use fixedDir there because it's always the camera vector).Dade wrote: Mon Mar 11, 2019 2:38 pm Well, do the Dot() inside the texture if you have but don't add a field to HitPoint object (i.e. GPU memory usage).
I thought I could maybe calculateDade wrote: Mon Mar 11, 2019 2:38 pm how you are supposed to know the camera dir while tracing paths from the light sources (i.e. BiDir, PhotonGI, etc.) ?
cameraDir = camera.position - hitPoint.p;
Can I check the camera position when initializing hitPoint?