2013年3月8日星期五

GameGraphics7


This assignment we need to create three new effect,

Effect

1.partially transparent Effect

This effect is to present the materials like glasses, so we need to send transparency to the fragment shade to let it know.
2. alphabinary Effect
I had used the clip() to ignore the part which is under 0.5





_________________________________________________________________________________
3.the additive effect

I get very confused in this part, and then, I found out it just need to set the render state to the right one.


Sorting 

sort the list to draw,We need to separate the our entities into two part, one part do not need the Alpha blending like the normal object and the one using Binary Alpha

the other part need Alpha blending,like Additive material and the Partially transparent material,

The former must be done before in the latter or you will not get the effect you want.

没有评论:

发表评论