Advertisement Jump to content
Sign in to follow this  

call Sneftel :depth peeling

This topic is 4894 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
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!