TankExporter icon indicating copy to clipboard operation
TankExporter copied to clipboard

frmShaderError

Open salami0133 opened this issue 10 months ago • 1 comments
trafficstars

I just installed version 1.0.0.165 and got this error upon opening the program:

image

tank_shader_vertex didn't compile!

ERROR: 0:25: 'str' : vector swizzle selectors not from the same set ERROR: 0:25: 'assign' : cannot convert from ' temp 2-component vector of float' to ' smooth out 3-component vector of float' ERROR: 0:25: '' : compilation terminated ERROR: 3 compilation errors. No code generated.

salami0133 avatar Jan 12 '25 09:01 salami0133

Press F9 at the bottom select tank_shader. The Vertex Program tab should be selected. press Ctr+a press Ctr +x Copy the code below. Upper right corner button in the code block. Select anywhere in the vertex window. Press Ctr+v Click the Compile button. Exit and restart Tank Exporter. Let me know if it works.,. Sorry for the delay. AMD cards can be very picky about syntax,

`#version 130 //tank_vertex.glsl //Used to light all models

out vec3 vVertex;

out vec3 v_Position; out vec2 TC1; out vec2 uv0; out vec2 uv1; out mat3 TBN;

out vec3 t; out vec3 b; out vec3 v_Normal; out vec3 vertexColor; void main(void) {

TC1 = gl_MultiTexCoord0.xy;

vec3 n = normalize(gl_NormalMatrix * gl_Normal);
vec3 t = normalize(gl_NormalMatrix * gl_MultiTexCoord1.xyz);
vec3 b = normalize(gl_NormalMatrix * gl_MultiTexCoord2.xyz);
vertexColor.xyz = gl_MultiTexCoord5.xyz;
v_Normal = n;
float invmax = inversesqrt(max(dot(t, t), dot(b, b)));
TBN = mat3(t * invmax, b * invmax, n * invmax);

v_Position = vec3(gl_ModelViewMatrix * gl_Vertex);
gl_Position = ftransform();

}`

mikeoverbay avatar Feb 24 '25 05:02 mikeoverbay