PlayStation simulator

This commit is contained in:
Cooliokid956 2025-12-05 11:57:34 -06:00 committed by GitHub
parent 2f0e640923
commit 3aa2f379d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View file

@ -147,8 +147,7 @@ void gfx_direct3d_common_build_shader(char buf[4096], size_t& len, size_t& num_f
append_line(buf, &len, "struct PSInput {");
append_line(buf, &len, " float4 position : SV_POSITION;");
if (ccf.used_textures[0] || ccf.used_textures[1]) {
if (!cc.cm.tex_persp) append_str(buf, &len, "noperspective");
append_line(buf, &len, " float2 uv : TEXCOORD;");
append_line(buf, &len, " noperspective float2 uv : TEXCOORD;");
num_floats += 2;
}
if ((cc.cm.use_alpha && cc.cm.use_dither) || ccf.do_noise) {

View file

@ -320,7 +320,7 @@ static struct ShaderProgram *gfx_opengl_create_and_load_new_shader(struct ColorC
#endif
if (ccf.used_textures[0] || ccf.used_textures[1]) {
append_line(fs_buf, &fs_len, opt_tex_persp ? "in vec2 vTexCoord;" : "noperspective in vec2 vTexCoord;");
append_line(fs_buf, &fs_len, "noperspective in vec2 vTexCoord;");
}
if (opt_fog) {
append_line(fs_buf, &fs_len, "in vec4 vFog;");