Skip navigation
fearless0ul
Currently Being Moderated

how to use <shader>.alphaSort ?

Oct 8, 2011 2:53 AM

Tags: #<shader>.alphasort

QQ截图未命名.jpg

hi guys,

look the picture above,the flowing river is translucency,the fence's texture is png.

So,the two models occur Alpha Channel Question.
This new function <shader>.alphaSort can solve this problem?

what’s meaning about alphasorting,how to use this new function?

 
Replies
  • Currently Being Moderated
    Oct 8, 2011 3:02 AM   in reply to fearless0ul

    That fence is using a shader.

    Just set member("w3d_name").shader("fence").alphaSort = true

    That's all.

     

    cheers

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 8, 2011 3:33 AM   in reply to fearless0ul

    fearless0ul wrote:

     

    Thank you your reply

    I do it just like you say,the value of alphaSort is 0 to 1

    But in the scene,there is nothing changed,why?

     

    It means that you have other semi(transparent) textures in your scene.

    Check them all.

    A good idea is to use JPG for non-transparent textures and PNG or TGA for the semi-transparent ones.

     

    cheers

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points