Message #1478150 - Error in shader compilation: info: %s %s %s

Kind #970: Error in shader compilation: info: %s %s %s

Game: FINAL FANTASY 零式 ディスク2 (NPJH50444_1.01)

Error in shader compilation: info: ERROR: 0:54: '==' :  wrong operand types  no operation '==' exists that takes a left-hand operand of type 'const int' and a right operand of type 'const float' (or there is no acceptable conversion)
ERROR: 0:59: '==' :  wrong operand types  no operation '==' exists that takes a left-hand operand of type 'const int' and a right operand of type 'const float' (or there is no acceptable conversion)
ERROR: 0:68: '==' :  wrong operand types  no operation '==' exists that takes a left-hand operand of type 'const int' and a right operand of type 'const float' (or there is no acceptable conversion)
ERROR: 0:74: '==' :  wrong operand types  no operation '==' exists that takes a left-hand operand of type 'const int' and a right operand of type 'const float' (or there is no acceptable conversion)
ERROR: 0:195: '-' :  wrong operand types  no operation '-' exists that takes a left-hand operand of type 'const int' and a right operand of type 'float' (or there is no acceptable conversion)
ERROR: 0:195: '*' :  wrong operand types  no operation '*' exists that takes a left-hand operand of type '3-component vector of float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 0:195: '-' :  wrong operand types  no operation '-' exists that takes a left-hand operand of type 'const int' and a right operand of type 'float' (or there is no acceptable conversion)
ERROR: 0:195: '*' :  wrong operand types  no operation '*' exists that takes a left-hand operand of type '3-component vector of float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 0:195: '-' :  wrong operand types  no operation '-' exists that takes a left-hand operand of type 'const int' and a right operand of type 'float' (or there is no acceptable conversion)
ERROR: 0:195: '*' :  wrong operand types  no operation '*' exists that takes a left-hand operand of type '3-component vector of float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 10 compilation errors.  No code generated.


postshader
/*
   AA shader 4.o + CRT Lottes
   
   Copyright (C) 2016 guest(r) - [email protected]

   This program is free software; you can redistribute it and/or
   modify it under the terms of the GNU General Public License
   as published by the Free Software Foundation; either version 2
   of the License, or (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

*/

// edit this value to get the smoothing right

const float scale = 6.0; // 4.0 -> smooth, 8.0 -> sharp

// CRT-Lottes settings (editable)

#define shadowMask 1             // 1, 2, 3 or 4 (CRT style)
#define maskDark 0.5             // Dark shadowmask value  
#define maskLight 1.5            // Light shadowmask value
#define scaleInLinearGamma 1     // 0 or 1 (0 dark, 1 bright), adjust maskDark and maskLight if you change this


#ifdef GL_ES
precision mediump float;
precision mediump int;
#endif

uniform sampler2D sampler0;

varying vec2 v_position;



uniform vec2 u_texelDelta;

uniform vec2 u_pixelDelta;
 

// CRT-Lottes code

float ToLinear1(float c)
{
   if (scaleInLinearGamma==0.0) return c;
   return(c<=0.04045)?c/12.92:pow((c+0.055)/1.055,2.4);
}
vec3 ToLinear(vec3 c)
{
   if (scaleInLinearGamma==0.0) return c;
   return vec3(ToLinear1(c.r),ToLinear1(c.g),ToLinear1(c.b));
}

// Linear to sRGB.
// Assuming using sRGB typed textures this should not be needed.

float ToSrgb1(float c)
{
   if (scaleInLinearGamma==0.0) return c;
   return(c<0.0031308?c*12.92:1.055*pow(c,0.41666)-0.055);
}

vec3

Status: new. 4 hits from 2020-02-04 16:27:41 to 2020-02-04 16:35:00 UTC. Message #1478150.

Individual reports are stored since 2026-11-12, the newest 100 per message; none for this message yet. Older hits only exist as the counters above. Hover a cell for details.