3 comments on “Custom pixel clipping in HLSL

  1. Hey Dom :) Thanks for the info, someday i'll get around to digging into hlsl enough to actually understand what it was you just typed out lol.

  2. 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

Your email address will not be published. Required fields are marked *