소스 검색

nice holes

legacy
jeunathe jnat 12 년 전
부모
커밋
169c6da480
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      tutorial/04_texture.lolfx

+ 2
- 2
tutorial/04_texture.lolfx 파일 보기

@@ -9,7 +9,7 @@ varying vec4 pass_Position;
void main(void)
{
pass_Position = vec4(0.5 * in_Position + 0.5, 0.0, 1.0);
gl_Position = vec4(in_Position, 0.0, 1.0);
gl_Position = vec4(in_Position, 0.5, 1.0);
}

[frag.glsl]
@@ -40,7 +40,7 @@ void main(void)
else
gl_FragColor = vec4(0.4, t.y, val, 1.0);
}
else if (t.y > c0.x - 0.02)
else if (t.y > c0.x - 0.03)
{
/* Grass */
if (f > 0.99)


불러오는 중...
취소
저장