[osg-users] Basic Lighting Shaders

2011-06-23 Thread Jeremy Moles
I'm looking to collect some sample code from OSG users (if this code is shareable) for some basic lighting examples done purely in GLSL. If anyone is willing to share this (I can certainly adapt it, so there's no need to modify it), I'd be grateful. What I'm looking for mainly is how lighting code

[osg-users] Basic Lighting Shaders

2011-06-29 Thread Sergey Kurdakov
Hi Jeremy, you might take a look at ShaderGen utility from http://3dshaders.com/home/index.php?option=com_weblinks&catid=14&Itemid=34 while not being intergrated with osg - you may extract glsl shaders from there and adapt them accordingly. Regards Sergey ___

[osg-users] Basic Lighting Shaders

2011-06-29 Thread Sergey Kurdakov
Hi Jeremy, >Did you ever get your thing figured out? : oh, yes, sorry forgot to write. Just two days ago did turn to this. I added multiplier gl_FragColor = (col + (1.0 - col.a) * frag) * 1.9 * pangoAlpha; to resolve my problems. the overall problem was that I use several surfaces with alph

Re: [osg-users] Basic Lighting Shaders

2011-06-23 Thread Peter Amstutz
osgShadow::StandardShadowMap has a straightforward GLSL implementation of standard OpenGL lighting. On 6/23/2011 1:24 PM, Jeremy Moles wrote: > I'm looking to collect some sample code from OSG users (if this code is > shareable) for some basic lighting examples done purely in GLSL. If > anyone is

Re: [osg-users] Basic Lighting Shaders

2011-06-24 Thread Jeremy Moles
On Thu, 2011-06-23 at 13:24 -0400, Jeremy Moles wrote: > I'm looking to collect some sample code from OSG users (if this code is > shareable) for some basic lighting examples done purely in GLSL. If > anyone is willing to share this (I can certainly adapt it, so there's no > need to modify it), I'd

Re: [osg-users] Basic Lighting Shaders

2011-06-29 Thread Stephan Irgenfried
Hi, i've written a couple of GLSL shaders for different BRDF models and would like to share them with others. Cheers, Stephan -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=41039#41039 ___ osg-user

Re: [osg-users] Basic Lighting Shaders

2011-06-29 Thread Chris 'Xenon' Hanson
On 6/29/2011 11:32 AM, Stephan Irgenfried wrote: > Hi, > i've written a couple of GLSL shaders for different BRDF models and would > like to share them with others. Is it something you could put on the OSG wiki? -- Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com http://www.alph

Re: [osg-users] Basic Lighting Shaders

2011-06-29 Thread Jeremy Moles
On Wed, 2011-06-29 at 19:32 +0200, Stephan Irgenfried wrote: > Hi, > > i've written a couple of GLSL shaders for different BRDF models and would > like to share them with others. > > Cheers, > Stephan No attachment. :( > -- > Read this topic online here: > http://forum.openscen

Re: [osg-users] Basic Lighting Shaders

2011-06-29 Thread Jeremy Moles
On Wed, 2011-06-29 at 22:51 +0400, Sergey Kurdakov wrote: > Hi Jeremy, > > > you might take a look at ShaderGen utility from > > > http://3dshaders.com/home/index.php?option=com_weblinks&catid=14&Itemid=34 > > > while not being intergrated with osg - you may extract glsl shaders > from there