Jump to content
  • Advertisement
Sign in to follow this  
CNBABY

arb_fragment_program

This topic is 4838 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

where is the tutorial about fragment program of arb_fragment_program. i am very confused with this fragment program code.it is about depth peeling. const char peel_fp[] = "!!ARBfp1.0\n" "OPTION ARB_fragment_program_shadow;\n" "PARAM offset = program.env[0];\n" "TEMP R0;\n" "MOV R0, fragment.position;\n" "ADD R0.x, R0.x, -offset;\n" "TEX R0.x, R0, texture[0], SHADOWRECT;\n" "ADD R0.x, R0.x, -0.5;\n" "KIL R0.x;\n" "MOV result.color, fragment.color;\n" "END\n"; what is mean ? i think it just change the fragment color.if then ,this fragment program is irrelative with the depth value.yes or no?could you explain it for me? thanks for your any help.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!