There was no support for VXGI on translucent materials… until now.
I added support for cone tracing functions in materials, see experimental branch - it’s not been tested enough, so I’m not merging it into the official one yet.
To use new :
- Open a material, make its blend mode Translucent.
- Check the “Vxgi Cone Tracing” box in Translucency section.
- Place a “VxgiTraceCone” primitive onto the material graph, and connect it as you wish. There can be multiple cones, for example reflection and refraction.
For reflections, connect AbsoluteWorldPosition to StartPos, and the result of CustomReflectionVector(Vertex|PixelNormalWS, CameraVector) to Direction. ConeFactor is the cone width, and it’s also required - start with 0.1.
For refractions, same to StartPos, and custom expression refract(-CameraVector, Vertex|PixelNormalWS, refraction index) to Direction.