change rendertexture2d to rendertexture
This commit is contained in:
parent
97c02b2425
commit
8b3d166e39
1 changed files with 32 additions and 32 deletions
|
|
@ -61,7 +61,7 @@ int main(void)
|
|||
// Render texture to render fog of war
|
||||
// NOTE: To get an automatic smooth-fog effect we use a render texture to render fog
|
||||
// at a smaller size (one pixel per tile) and scale it on drawing with bilinear filtering
|
||||
RenderTexture2D fogOfWar = LoadRenderTexture(map.tilesX, map.tilesY);
|
||||
RenderTexture fogOfWar = LoadRenderTexture(map.tilesX, map.tilesY);
|
||||
SetTextureFilter(fogOfWar.texture, TEXTURE_FILTER_BILINEAR);
|
||||
|
||||
SetTargetFPS(60); // Set our game to run at 60 frames-per-second
|
||||
|
|
|
|||
Loading…
Reference in a new issue