Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


#Actuallomateron

Posted 12 February 2013 - 05:12 AM

I have a technique that uses vertex, geometry and pixel shaders

 

I want to render nothing to a texture when i read in the vertex shader a texel and i see that it has a determined value.

 

The best way I know in performance to make it render nothing is to replace the vertice position "w" (the fourth value) with 0.0f. Is there a fastest way? is there something similar to clip() but for the vertex shader? to stop going into the geometry shader.


#1lomateron

Posted 12 February 2013 - 05:10 AM

I have a technique that uses vertex, geometry and pixel shaders

 

I want to render nothing to a texture when i read in the vertex shader a texel and i see that it has a determined value.

 

The best way I know in performance to make it render nothing is to replace the vertice position "w" (the fourth value) with 0.0f. Is there a fastest way? is there something similar to clip() but for the vertex shader?


PARTNERS