Horde3D http://horde3d.org/forums/ |
|
ERROR: error(#277) http://horde3d.org/forums/viewtopic.php?f=2&t=1023 |
Page 1 of 1 |
Author: | Siavash [ 06.12.2009, 16:20 ] |
Post subject: | ERROR: error(#277) |
I'm using default shaders and I'm getting a bunch of these errors in the EngineLog. Code: Shader resource 'shaders/model.shader': ShaderLog: [Linking] Fragment shader(s) linked, vertex shader(s) linked. ERROR: error(#277) Symbol 'pos' usage doesn't match between two stages ERROR: error(#277) Symbol 'vsPos' usage doesn't match between two stages ERROR: error(#277) Symbol 'pos' usage doesn't match between two stages ERROR: error(#277) Symbol 'vsPos' usage doesn't match between two stages Should they considered as important errors ? |
Author: | swiftcoder [ 07.12.2009, 15:57 ] |
Post subject: | Re: ERROR: error(#277) |
Those usually imply that you have declared the same name as an attribute in the vertex shader, and a uniform in the fragment shader. Double-check your names, and make sure there are *no* overlaps. |
Author: | Siavash [ 07.12.2009, 17:13 ] |
Post subject: | Re: ERROR: error(#277) |
swiftcoder wrote: Those usually imply that you have declared the same name as an attribute in the vertex shader, and a uniform in the fragment shader. Double-check your names, and make sure there are *no* overlaps. Yep, vsPos is defined in both VS_GENERAL and FS_LIGHTING at model.shader. Here is the EngineLog generated after running the Knight sample in the official beta4 SDK : http://pastebin.com/m67280971
|
Author: | Siavash [ 08.12.2009, 18:54 ] |
Post subject: | Re: ERROR: error(#277) |
*BUMP* Just wanted to note this problem occurs with original shaders and I didn't touched anything. |
Author: | marciano [ 09.12.2009, 20:55 ] |
Post subject: | Re: ERROR: error(#277) |
Does the shader work correctly? The error seems to come from the fact that the varyings pos and vsPos are written in the shared vertex shader VS_GENERAL but not declared/read in all the fragment shaders. |
Author: | Siavash [ 09.12.2009, 22:57 ] |
Post subject: | Re: ERROR: error(#277) |
marciano wrote: Does the shader work correctly? Yes, everything goes well and there is no problem regards to the rendering in the knight and chicago samples. Just noticed at those errors in the engine log.
The error seems to come from the fact that the varyings pos and vsPos are written in the shared vertex shader VS_GENERAL but not declared/read in all the fragment shaders. |
Page 1 of 1 | All times are UTC + 1 hour |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |