reepblue Posted September 23, 2018 Share Posted September 23, 2018 Quote Fragment shader failed to compile with the following errors: ERROR: 0:197: error(#143) Undeclared identifier: s ERROR: 0:197: error(#132) Syntax error: "creencoord" parse error ERROR: error(#273) 2 compilation errors. No code generated Failed to compile fragment shader. Error: Failed to compile fragment shader. Line 280: Change: #ifdef USEPOSITIONBUFFER //VR Sheared mprojection vec3 screencoord = texelFetch(texture4,icoord,i).xyz; s creencoord.y *= -1.0f; #else vec3 screencoord = vec3(((gl_FragCoord.x/buffersize.x)-0.5) * 2.0 * (buffersize.x/buffersize.y),((-gl_FragCoord.y/buffersize.y)+0.5) * 2.0,depthToPosition(depth,camerarange)); screencoord.x *= screencoord.z / camerazoom; screencoord.y *= -screencoord.z / camerazoom; #endif To: #ifdef USEPOSITIONBUFFER //VR Sheared mprojection vec3 screencoord = texelFetch(texture4,icoord,i).xyz; screencoord.y *= -1.0f; #else vec3 screencoord = vec3(((gl_FragCoord.x/buffersize.x)-0.5) * 2.0 * (buffersize.x/buffersize.y),((-gl_FragCoord.y/buffersize.y)+0.5) * 2.0,depthToPosition(depth,camerarange)); screencoord.x *= screencoord.z / camerazoom; screencoord.y *= -screencoord.z / camerazoom; #endif ? 1 Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
Josh Posted September 24, 2018 Share Posted September 24, 2018 Fixed, on beta branch now. My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts