이 웹사이트는 자바스크립트 활성화가 필요합니다.
홈
도움말
로그인
lolengine
/
lol
의 미러
https://github.com/lolengine/lol
보기
1
좋아요
0
포크
0
코드
이슈
0
릴리즈
0
위키
활동
소스 검색
btphystest: use discard in fragment shader instead of AlphaFunc.
undefined
Sam Hocevar
12 년 전
부모
1c42570a28
커밋
4f66a49fc2
2개의 변경된 파일
과
5개의 추가작업
그리고
3개의 파일을 삭제
통합 보기
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-2
test/btphystest.cpp
+5
-1
test/front_camera_sprite.lolfx
+ 0
- 2
test/btphystest.cpp
파일 보기
@@ -58,8 +58,6 @@ BtPhysTest::BtPhysTest(bool editor)
{
{
m_loop_value = .0f;
m_loop_value = .0f;
g_renderer->SetAlphaFunc(AlphaFunc::Greater, 0.0);
#if CAT_MODE
#if CAT_MODE
/* cat datas setup */
/* cat datas setup */
m_cat_texture = Tiler::Register("data/CatsSheet.png", ivec2(0), ivec2(0,1));
m_cat_texture = Tiler::Register("data/CatsSheet.png", ivec2(0), ivec2(0,1));
+ 5
- 1
test/front_camera_sprite.lolfx
파일 보기
@@ -45,5 +45,9 @@ const float PI = 3.14159265358979323846264;
void main(void)
void main(void)
{
{
gl_FragColor = texture2D(in_texture, pass_texcoord.xy) * pass_color;
vec4 color = texture2D(in_texture, pass_texcoord.xy);
if (color.a < 0.01)
discard;
gl_FragColor = color * pass_color;
}
}
쓰기
미리보기
불러오는 중...
취소
저장