Faulty shader system
Faulty shader system
This has been driving me mad for over a year so im putting it as a bug.
It appears no matter how many sampler2d i put in my shader only the first one picks up Material 0 from irrlicht while the second one also picks up material zero and not material 1.
This has restriced my shader to using one texture making them very boring.
maybe it is my codes fault if so please give me example code to load two textures into the shader
This is both in Hlsl and glsl
if i get this working the hdr effect should be done
It appears no matter how many sampler2d i put in my shader only the first one picks up Material 0 from irrlicht while the second one also picks up material zero and not material 1.
This has restriced my shader to using one texture making them very boring.
maybe it is my codes fault if so please give me example code to load two textures into the shader
This is both in Hlsl and glsl
if i get this working the hdr effect should be done
-
Guest
post it on the
http://pastebin.com/
and give me the link
or use this and give me the link
http://www.megaupload.com/(thanks to dawasw for the link)
http://pastebin.com/
and give me the link
or use this and give me the link
http://www.megaupload.com/(thanks to dawasw for the link)
More info:
As I said, this is only for GLSL and the OpenGL driver. It's not a 100% correct fix, in the sense that it could be done better (the COpenGLSLMaterialRenderer part).
Also note that I have pumped MATERIAL_MAX_TEXTURES to 8. You might want to lower it to 4 to make it compatible with most graphics cards...
As I said, this is only for GLSL and the OpenGL driver. It's not a 100% correct fix, in the sense that it could be done better (the COpenGLSLMaterialRenderer part).
Also note that I have pumped MATERIAL_MAX_TEXTURES to 8. You might want to lower it to 4 to make it compatible with most graphics cards...
Explain what? The patch file is straightforward and usable against irrlicht 0.14.Anonymous wrote:plz explain the changes so Niko implements them
The bug is that irrlicht doesn't set correctly integer shader constants (like sampler2d). This patch adds quick'n'dirty support for it (that's what could be done better).
-
Guest
i think he wanted to know >how< to apply the patch.
if you have linux, you can use the "patch" command. if you use windows, you have to search for the win32 version of patch.
but i did this for you - here is the link:
http://www.fsci.fuk.kindai.ac.jp/aftp/p ... ff-w32.zip
then you have to open the windows command line tool cmd.exe and then type patch.exe and then you see on how to use it
see you!
if you have linux, you can use the "patch" command. if you use windows, you have to search for the win32 version of patch.
but i did this for you - here is the link:
http://www.fsci.fuk.kindai.ac.jp/aftp/p ... ff-w32.zip
then you have to open the windows command line tool cmd.exe and then type patch.exe and then you see on how to use it
see you!
-
Guest