(replying to myself) > dumb questions from an OpenGL shading newbie... > > i have a material with a constant color and two textures, looks quite nice. > now, > i'd like to add a third texture as a bump map. what is the easiest way to do > this? > > i tried adding a SHLChunk bump map shader, but as i'm quite new to GLSL i did > not yet succeed. is it even possible to do the ambient part in the opensg > material and only the specular part in the GLSL shader? or do i have to do > all > in GLSL?
wow, i managed to learn glsl and write a shader which handles all of the textures :) a related question: i am creating scenes with a custom application, where the shaders are included by using the SHLChunk::read*Program commands. i noticed, that in order to reload a shader after editing, i have to re-export the whole scene. is it somehow possible to reload a shader without rewriting the scene file? perhaps, by only storing the path to the shaders inside the .osb? atm, i'm using a slightly modified osgSceneViewer to render. cheers, simon ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
