소스 검색

fix(examples): don't bleed fog when on edge (#5547)

Steps to reproduce:
1. play textures_fog_of_war example
2. Move player to edge of screen
3. Note the light bleeds to the other side of the screen
pull/5551/head
Max Coplan 2 주 전
committed by GitHub
부모
커밋
85de580527
No known key found for this signature in database GPG 키 ID: B5690EEEBB952194
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. +1
    -0
      examples/textures/textures_fog_of_war.c

+ 1
- 0
examples/textures/textures_fog_of_war.c 파일 보기

@ -68,6 +68,7 @@ int main(void)
// at a smaller size (one pixel per tile) and scale it on drawing with bilinear filtering
RenderTexture2D fogOfWar = LoadRenderTexture(map.tilesX, map.tilesY);
SetTextureFilter(fogOfWar.texture, TEXTURE_FILTER_BILINEAR);
SetTextureWrap(fogOfWar.texture, TEXTURE_WRAP_CLAMP);
SetTargetFPS(60); // Set our game to run at 60 frames-per-second
//--------------------------------------------------------------------------------------

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