mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-09-10 12:02:53 +02:00
Convert constants in PortableGL tilemap shader into macros
Fixes the PlayStation 3 build.
This commit is contained in:
parent
2cd8202af3
commit
6acb8e868f
1 changed files with 8 additions and 8 deletions
|
@ -1,13 +1,13 @@
|
|||
#include "tilemap.pgl.h"
|
||||
|
||||
static const float tileW = 32.0;
|
||||
static const float tileH = 32.0;
|
||||
static const float autotileW = 3.0*tileW;
|
||||
static const float autotileH = 4.0*tileW;
|
||||
static const float atAreaW = autotileW;
|
||||
static const float atAreaH = autotileH*nAutotiles;
|
||||
static const float atAniOffsetX = 3.0*tileW;
|
||||
static const float atAniOffsetY = tileH;
|
||||
#define tileW 32.0
|
||||
#define tileH 32.0
|
||||
#define autotileW (3.0*tileW)
|
||||
#define autotileH (4.0*tileW)
|
||||
#define atAreaW (autotileW)
|
||||
#define atAreaH (autotileH*nAutotiles)
|
||||
#define atAniOffsetX (3.0*tileW)
|
||||
#define atAniOffsetY (tileH)
|
||||
|
||||
void mkxpTilemapVS(float *_output, pgl_vec4 *_attribs, Shader_Builtins *builtins, void *_uniforms)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue