RE: Jenny Gore
I store the normal and vector from the origin. I do not see how I can prenormalize that vector that I use to calculate the dot product because I have to generate it for each point in world space on the mesh, something I do not know in advance. Further, if I use just the distance I have no way to determine where the cutting plane is in space. I just know that it is somewhere on a sphere with a radius of that length. However, your last suggestion I can try. It makes sense and is a great idea, I think. If I am missing something or misunderstood you, please correct me.
Thanks.
RE:
In the editor I get 110 frames when looking at nothing and 45 when looking at the voxels. I get 80-90 in standalone editor when looking at the voxels. In VR preview I get 90 when looking away and 45 when I look at the voxels. I was recording at the time and the editor was up in the background.The GPU profile shows that there are two major costs in m frame. The HZB SetupMips Mips 1 and direct light. The translucency takes about 1/3rd of what those two took. I dont know what the former means though.
I have no idea how to optimize for VR. I can optimize in general, but I am not sure what to do for VR specifically.
Thanks.