Fix formatting & cmake

This commit is contained in:
wheremyfoodat 2023-07-01 22:35:07 +03:00
parent ca89909c00
commit 1ac3a474da
4 changed files with 8 additions and 5 deletions

View file

@ -247,7 +247,7 @@ void GPU::drawArrays() {
shaderUnit.vs.run();
}
PicaVertex &out=vertices[i];
PicaVertex& out = vertices[i];
// Map shader outputs to fixed function properties
const u32 totalShaderOutputs = regs[PICA::InternalRegs::ShaderOutputCount] & 7;
for (int i = 0; i < totalShaderOutputs; i++) {

View file

@ -189,10 +189,12 @@ const char* fragmentShader = R"(
return result;
}
void calcLighting(out vec4 primary_color, out vec4 secondary_color){
primary_color = vec4(vec3(0.0),1.0);
secondary_color = vec4(vec3(0.0),1.0);
primary_color = vec4(vec3(0.5) ,1.0);
secondary_color = vec4(vec3(0.5) ,1.0);
}
void main() {
vec2 tex2UV = (u_textureConfig & (1u << 13)) != 0u ? v_texcoord1 : v_texcoord2;