Sign in to follow this  
Batolemaeus

Uninitialised variable in program.terrain_light.multipass.fragment

Recommended Posts

It just occurred to me that this probably should be outside of the Linux issues forum as well, since it's a Wurm/OpenGL issue.

 

In terrain_light.multipass.fragment.shader, the variable _worldpos is used without being initialised. Some drivers will zero-init it, some will throw an error. On those that throw an error, Wurm will crash.

 

Having read the shader code, I strongly suspect that terrain lighting isn't quite working as intended if the driver zero-initialises the variable. (But my knowledge of GLSL is a bit rusty, so that's just a hunch)

 

 

See also 

 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this