mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-17 19:21:30 +12:00
Fix shader type mismatches (#311)
* Update opengl_fragment_shader.frag * Update opengl_vertex_shader.vert
This commit is contained in:
parent
63272abfbe
commit
5043f98e00
2 changed files with 3 additions and 3 deletions
|
@ -32,7 +32,7 @@ uniform sampler1DArray u_tex_lighting_lut;
|
||||||
uniform uint u_picaRegs[0x200 - 0x48];
|
uniform uint u_picaRegs[0x200 - 0x48];
|
||||||
|
|
||||||
// Helper so that the implementation of u_pica_regs can be changed later
|
// Helper so that the implementation of u_pica_regs can be changed later
|
||||||
uint readPicaReg(uint reg_addr) { return u_picaRegs[reg_addr - 0x48]; }
|
uint readPicaReg(uint reg_addr) { return u_picaRegs[reg_addr - 0x48u]; }
|
||||||
|
|
||||||
vec4 tevSources[16];
|
vec4 tevSources[16];
|
||||||
vec4 tevNextPreviousBuffer;
|
vec4 tevNextPreviousBuffer;
|
||||||
|
|
|
@ -27,7 +27,7 @@ uniform uint u_textureEnvColor[6];
|
||||||
uniform uint u_picaRegs[0x200 - 0x48];
|
uniform uint u_picaRegs[0x200 - 0x48];
|
||||||
|
|
||||||
// Helper so that the implementation of u_pica_regs can be changed later
|
// Helper so that the implementation of u_pica_regs can be changed later
|
||||||
uint readPicaReg(uint reg_addr) { return u_picaRegs[reg_addr - 0x48]; }
|
uint readPicaReg(uint reg_addr) { return u_picaRegs[reg_addr - 0x48u]; }
|
||||||
|
|
||||||
vec4 abgr8888ToVec4(uint abgr) {
|
vec4 abgr8888ToVec4(uint abgr) {
|
||||||
const float scale = 1.0 / 255.0;
|
const float scale = 1.0 / 255.0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue