Jump to content
  • Advertisement
Sign in to follow this  
CNBABY

call Sneftel :depth peeling

This topic is 4833 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

Sneftel: thank you for last help.but i am sorry,i am juse a beginning.i read the nvidia <Interactive Order-Independent Transparency>.i am confused about the fragment program.i just need the first nearest and second nearest depth value. is there other method? who could help me to explain the fragment program 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 irrelative with the depth value. thanks for any helps.please,please,please

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!