[?-r865] User defined shaders problem

Bugs that have been resolved.

Moderator: Graf Zahl

Locked
Dethernal
Posts: 31
Joined: Thu Jan 22, 2009 20:48

[?-r865] User defined shaders problem

Post by Dethernal »

Only first declarated shaders was used for ALL shader-linked textures.
For example, in this pk3 columns must rotate in opposite directions and has different tone.
And yes, can you add any more variables in shader like normal and camera vector?
Attachments
sherr.pk3
(1.62 KiB) Downloaded 97 times
User avatar
Firebrand
Dev Builds Team
Posts: 126
Joined: Mon Aug 10, 2009 21:00
Location: Mexico
Contact:

Re: [?-r865] User defined shaders problem

Post by Firebrand »

Well, seeing that Graf decided to stop working on the renderer, I doubt there's any chances of improving support for shaders.
I'm the ruler of the Fire Power.....
Dethernal
Posts: 31
Joined: Thu Jan 22, 2009 20:48

Re: [?-r865] User defined shaders problem

Post by Dethernal »

gl_shader.cpp line 625

Code: Select all

			if (usershaders[i].CompareNoCase(maplumpname))
			{
				tex->gl_info.shaderindex = i + FIRST_USER_SHADER;
				return;
			}
		}
need negation :

Code: Select all

			if (!usershaders[i].CompareNoCase(maplumpname))
			{
				tex->gl_info.shaderindex = i + FIRST_USER_SHADER;
				return;
			}
		}
please apply it. Thanks!
User avatar
Gez
Developer
Developer
Posts: 1399
Joined: Mon Oct 22, 2007 16:47

Re: [?-r865] User defined shaders problem

Post by Gez »

Thanks for looking into it. Applied and fixed. :)
Locked

Return to “Closed Bugs”