Advertisement Jump to content
Sign in to follow this  


This topic is 4900 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 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
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!