3 comments on “Custom pixel clipping in HLSL

  1. Yes, Clip() is cool ! I used it for exactly the same purpose. The only drawback is that all the objects you want clipped, need to be rendered with a shader that performs the clip. In the end I only used it in a scene that already used an image-based lighting shader (by Oliver). How do you distribute the shader across all scene objects ? Just wondering how a pipeline-minded guy like you tackles that.

Leave a Reply