[x3d-public] battle of the composed shaders. X3DOM wins until you teach me how to write better shaders.
yottzumm at gmail.com
yottzumm at gmail.com
Wed May 3 22:20:28 PDT 2017
http://coderextreme.net/X3DJSONLD/ball.xhtml (inlines and URLs, links to shaders)
http://coderextreme.net/X3DJSONLD/ball.x3d (actual file to modify)
http://coderextreme.net/X3DJSONLD/x3dom.vs (working vertex shader in X3DOM)
http://coderextreme.net/X3DJSONLD/common.fs (working fragment shader in X3DOM)
Has a sphere in a scene shown with ComposedShaders. My challenge for everyone except for X3DOM is to provide better shading programs or shaders to me that will make your viewers look superb like X3DOM. I suspect that it has something to do with the shaders, but I have only a clue how to write OpenGL ES shaders, and I don’t know how to write portable shaders, it appears. So I’m hoping you will help.
I have provided links to the X3D and the vertex and fragment shaders.
Also, I’d like to see more support for specifying multiple vendors ComposedShaders or ShaderParts.
FreeWRL: why can’t I use the same fragment shader as everyone else…you are extremely close! How do I pass uniform floats to the vertex shader?
Instant Player: Wow, some strange errors in the console!
Also, it would be nice if I could use the same or similar vertex shader for everyone. Perhaps look at the vertex shaders and see how to find commonality.
Holger, I know you already replied, but I never saw the shaders you provided. Could you post them as a reply to this message? Thanks!
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170504/f3098a9e/attachment.html>
More information about the x3d-public
mailing list