Changeset 2885


Ignore:
Timestamp:
Sep 9, 2013, 6:56:49 PM (6 years ago)
Author:
sam
Message:

btphystest: use discard in fragment shader instead of AlphaFunc.

Location:
trunk/test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/btphystest.cpp

    r2883 r2885  
    5858{
    5959    m_loop_value = .0f;
    60 
    61     g_renderer->SetAlphaFunc(AlphaFunc::Greater, 0.0);
    6260
    6361#if CAT_MODE
  • trunk/test/front_camera_sprite.lolfx

    r2880 r2885  
    4646void main(void)
    4747{
    48     gl_FragColor = texture2D(in_texture, pass_texcoord.xy) * pass_color;
     48    vec4 color = texture2D(in_texture, pass_texcoord.xy);
     49    if (color.a < 0.01)
     50        discard;
     51    gl_FragColor = color * pass_color;
    4952}
     53
Note: See TracChangeset for help on using the changeset viewer.