Jump to content

Shader Typo: probe.shader


reepblue
 Share

Recommended Posts

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

?

  • Like 1

Cyclone - Ultra Game System - Component PreprocessorTex2TGA - Darkness Awaits Template (Leadwerks)

If you like my work, consider supporting me on Patreon!

Link to comment
Share on other sites

  • Josh locked this topic
Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...