Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- INFO: Loaded shader package simple
- INFO: Loaded shader package simple, variant simple_premult
- INFO: Loaded shader package simple, variant simple_gamma_premult
- INFO: Loaded shader package simple, variant simple_gamma
- INFO: Loaded shader package simple, variant simplecar
- INFO: Loaded shader package logluminance
- INFO: ----- Start Shader Compile Log for /Applications/VDrift/Dev/vdrift/data/shaders/logluminance/fragment.glsl -----
- INFO: ERROR: 0:30: Call to undeclared function 'texture2DLod'
- INFO: ----- End Shader Compile Log -----
- INFO: ----- Start Shader Link Log for /Applications/VDrift/Dev/vdrift/data/shaders/logluminance/vertex.glsl and /Applications/VDrift/Dev/vdrift/data/shaders/logluminance/fragment.glsl -----
- INFO: ERROR: One or more attached shaders not successfully compiled
- INFO: ----- End Shader Link Log -----
- ERROR: Shader compilation failure: /Applications/VDrift/Dev/vdrift/data/shaders/logluminance/vertex.glsl and /Applications/VDrift/Dev/vdrift/data/shaders/logluminance/fragment.glsl
- ERROR:
- ERROR: Vertex shader:
- ERROR: 1 : #version 120
- ERROR: 2 : #define _TINY_
- ERROR: 3 : #define _NORMALMAPS_
- ERROR: 4 : #define _REFLECTIONSTATIC_
- ERROR: 5 : #define SCREENRESY 1036
- ERROR: 6 : #define SCREENRESX 1920
- ERROR: 7 : varying vec2 tu0coord;
- ERROR: 8 :
- ERROR: 9 : void main()
- ERROR: 10 : {
- ERROR: 11 : // Transforming the vertex
- ERROR: 12 : gl_Position = gl_ProjectionMatrix * gl_ModelViewMatrix * gl_Vertex;
- ERROR: 13 :
- ERROR: 14 : tu0coord = vec2(gl_MultiTexCoord0);
- ERROR: 15 : }
- ERROR: 16 :
- ERROR:
- ERROR: Fragment shader:
- ERROR: 1 : #version 120
- ERROR: 2 : #define _TINY_
- ERROR: 3 : #define _NORMALMAPS_
- ERROR: 4 : #define _REFLECTIONSTATIC_
- ERROR: 5 : #define SCREENRESY 1036
- ERROR: 6 : #define SCREENRESX 1920
- ERROR: 7 : varying vec2 tu0coord;
- ERROR: 8 :
- ERROR: 9 : uniform sampler2D tu0_2D;
- ERROR: 10 :
- ERROR: 11 : const vec3 LUMINANCE = vec3(0.2125, 0.7154, 0.0721);
- ERROR: 12 : const float DELTA = 0.0001;
- ERROR: 13 :
- ERROR: 14 : /*const float scale = 0.1;
- ERROR: 15 : const float offset = 5.;
- ERROR: 16 : const float timefactor = 0.1;
- ERROR: 17 : const float scale_tiny = 3.0;
- ERROR: 18 : const float offset_tiny = -0.12;*/
- ERROR: 19 :
- ERROR: 20 : const float scale = 0.25;
- ERROR: 21 : const float offset = 2.0;
- ERROR: 22 : const float timefactor = 0.1;
- ERROR: 23 : //const float timefactor = 1.0;
- ERROR: 24 :
- ERROR: 25 : void main()
- ERROR: 26 : {
- ERROR: 27 : #ifdef _TINY_
- ERROR: 28 : float lod = 9;
- ERROR: 29 : //gl_FragColor.rgb = vec3(1.,1.,1.)*(texture2DLod(tu0_2D, tu0coord, lod).r+offset_tiny)*scale_tiny;
- ERROR: 30 : gl_FragColor.rgb = vec3(1.,1.,1.)*texture2DLod(tu0_2D, tu0coord, lod).r;
- ERROR: 31 : gl_FragColor.a = timefactor;
- ERROR: 32 : #else
- ERROR: 33 : float luminance = dot(LUMINANCE,texture2D(tu0_2D, tu0coord).rgb);
- ERROR: 34 : float logluminance = log(luminance+DELTA);
- ERROR: 35 : gl_FragColor.rgb = vec3(1.,1.,1.)*(logluminance+offset)*scale;
- ERROR: 36 : #endif
- ERROR: 37 : }
- ERROR: 38 :
- ERROR:
- ERROR: Disabling shaders due to shader loading error
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement