Re: [Maya2osg-users] Customized GLSL shaders
Status: Alpha
Brought to you by:
jtaibo
From: Peter W. <pp...@cg...> - 2011-05-26 22:16:54
|
Hi Javier, I added the required functionality to the textfields. > > The test shaders I am using do not work in a standard OSG viewer, > unless you load it in the proper 3D engine you won't see anything. But > for testing purposes any scene can do. Just add a fragment code like > this: > > gl_FragData[0] = vec4(0.0, 1.0, 0.0, 1.0); > > And you'll test if it is working. > > Anyway, if you modify the UI let me know and I will test it also. The shader code does not end up in the osg file. Don't know what I'm doing wrong. I also shortened the envVars a little, and the lables of Textfields, they did not fit into the UI, but they are still self explanatory. I'm also suggesting different names for the maya2osg option Flags, to keep it all consistent. -glslVertDeclare instead of -additionalVertexdeclare -glslVertCompute instead of -additionalVertexCode -glslFragDeclare instead of -additionalFragmentdeclare -glslFragCompute instead of -additionalFragmentCode Cheers, PP |