Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Source file extension changes (cc to cpp)
08-14-2007, 06:39 PM,
#18
 
abs1nth Wrote:modifying the other shaders also makes the shaders compile but it somehow forces vdrift into extremely slow software rendering (although it is pretty ;-)

something must have changed, it doesn't fall back to software anymore, but it also isn't pretty any more: [Image: screenshotjy4.png]

btw here is the diff:
Code:
Index: shaders/full/fragment.glsl
===================================================================
--- shaders/full/fragment.glsl  (Revision 52)
+++ shaders/full/fragment.glsl  (Arbeitskopie)
@@ -10,7 +10,7 @@

//varying vec3 eyecoords;
varying vec3 eyespacenormal;
-uniform vec3 eyelightposition;
+varying vec3 eyelightposition;
varying vec4 ecpos;
varying vec3 viewdir;

Index: shaders/full-nometallic/vertex.glsl
===================================================================
--- shaders/full-nometallic/vertex.glsl (Revision 52)
+++ shaders/full-nometallic/vertex.glsl (Arbeitskopie)
@@ -17,7 +17,7 @@

        //set the normal, eyespace normal, and eyespace position
        eyespacenormal = normalize(gl_NormalMatrix * gl_Normal);
-       normal = (mat3(gl_TextureMatrix[1]) * gl_NormalMatrix) * gl_Normal;
+       normal = (mat3(gl_TextureMatrix[1][0].xyz,gl_TextureMatrix[1][1].xyz,gl_TextureMatrix[1][2].xyz) * gl_NormalMatrix) * gl_Normal;
        //normal = vec3(gl_TextureMatrix[1] * (gl_ModelViewProjectionMatrix * gl_Vertex));
        //normal = gl_NormalMatrix * gl_Normal;
        //normal = gl_Normal;
Index: shaders/full-nospecular/vertex.glsl
===================================================================
--- shaders/full-nospecular/vertex.glsl (Revision 52)
+++ shaders/full-nospecular/vertex.glsl (Arbeitskopie)
@@ -15,6 +15,6 @@
        //set the texture coordinates
        texcoord_2d = vec2(gl_MultiTexCoord0);

-       normal = (mat3(gl_TextureMatrix[1]) * gl_NormalMatrix) * gl_Normal;
+       normal = (mat3(gl_TextureMatrix[1][0].xyz,gl_TextureMatrix[1][1].xyz,gl_TextureMatrix[1][2].xyz) * gl_NormalMatrix) * gl_Normal;
        lightposition = normalize(vec3(.1,1.0,.3));
}
Reply


Messages In This Thread
[No subject] - by abs1nth - 07-08-2007, 08:33 AM
[No subject] - by joevenzon_phpbb2_import3 - 07-08-2007, 02:04 PM
[No subject] - by abs1nth - 07-09-2007, 02:27 PM
[No subject] - by joevenzon_phpbb2_import3 - 07-09-2007, 11:21 PM
[No subject] - by thelusiv - 07-10-2007, 03:15 AM
[No subject] - by abs1nth - 07-10-2007, 03:00 PM
[No subject] - by joevenzon_phpbb2_import3 - 07-10-2007, 09:02 PM
[No subject] - by abs1nth - 07-11-2007, 02:00 PM
[No subject] - by thelusiv - 07-11-2007, 02:14 PM
[No subject] - by abs1nth - 07-11-2007, 04:12 PM
[No subject] - by joevenzon_phpbb2_import3 - 07-11-2007, 11:00 PM
[No subject] - by abs1nth - 07-12-2007, 08:04 AM
[No subject] - by joevenzon_phpbb2_import3 - 07-12-2007, 06:45 PM
[No subject] - by joevenzon_phpbb2_import3 - 07-12-2007, 07:14 PM
[No subject] - by abs1nth - 07-16-2007, 04:58 PM
[No subject] - by joevenzon_phpbb2_import3 - 07-17-2007, 09:20 PM
[No subject] - by abs1nth - 08-14-2007, 06:39 PM
[No subject] - by joevenzon_phpbb2_import3 - 08-14-2007, 08:59 PM
[No subject] - by abs1nth - 08-15-2007, 07:08 AM
[No subject] - by joevenzon_phpbb2_import3 - 08-15-2007, 10:34 PM
[No subject] - by abs1nth - 09-13-2007, 05:36 PM
[No subject] - by joevenzon_phpbb2_import3 - 10-16-2007, 10:18 PM
[No subject] - by joevenzon_phpbb2_import3 - 12-27-2007, 04:03 PM
[No subject] - by abs1nth - 12-28-2007, 04:54 PM
[No subject] - by joevenzon_phpbb2_import3 - 12-28-2007, 11:29 PM
[No subject] - by abs1nth - 12-29-2007, 09:05 AM
[No subject] - by joevenzon_phpbb2_import3 - 12-29-2007, 03:31 PM
[No subject] - by abs1nth - 12-29-2007, 04:39 PM
[No subject] - by joevenzon_phpbb2_import3 - 12-30-2007, 02:22 PM
[No subject] - by abs1nth - 01-07-2008, 10:23 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)