Page 1 of 1
don't modify GLSL
Posted: Wed Jul 07, 2010 6:33 pm
by cyrfer
Hi,
The fact that OGRE is modifying my GLSL after loading it is not intuitive. What is the motivation to do this anyway? I am voting for this feature to be removed. Please see
this post. Thanks.
Re: don't modify GLSL
Posted: Thu Jul 08, 2010 12:06 am
by jacmoe
Why not continue the existing topic?
This is kind of fragmented..
Re: don't modify GLSL
Posted: Thu Jul 08, 2010 1:13 am
by cyrfer
I don't think it makes sense to 'preprocess' the shader, and it is especially bad practice to modify the shader. That is the point of this feature request.
The other thread has identified that this may be happening due to some kind of bug in the OGRE preprocess-ing. Hopefully that can be resolved.
Re: don't modify GLSL
Posted: Thu Jul 08, 2010 1:54 am
by masterfalcon
Yes, actually I think the problem is that you've been mistakenly thinking of what is possibly a bug as a feature. In fact, preprocessing is a good thing. It's necessary to let you to pass preprocessor defines in a material script.
Let's keep the conversation in the already established thread and let this one end here.