HLSL pixel shader: possible to not set output color?
Is it possible to somehow not set the output color in a HLSL pixel shader without getting an error message? It is possible with a CG shader. The effect is a transparent surface at pixels where the output color is not set/computed.
Nico
[317 byte] By [
NicoRi] at [2008-2-15]
Hm, does something like texkill exist in HLSL? Otherwise it is not that useful to me. Also at a first glance on the texkill dx documentation it seems to only kill the pixel if its tex coords are less than zero. But I like to use an arbitrary if statement to mask the pixel.
Thanks for your suggestion.

Maybe I will try that some time. At the moment I just render one object, so I simply set the output color to the background color.