<div dir="ltr">Hey guys just wondering if there's any feedback on this one<div><br><div>I've read the specification on <a href="http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/shaders.html#ShaderPart">ShaderPart</a> and noticed that the type attribute is restricted to <span style="color:rgb(0,0,0);font-size:11.05px">["VERTEX"|"FRAGMENT"]</span></div><div><span style="color:rgb(0,0,0);font-size:11.05px"><br></span>however later read  "The type field indicates whether this object shall be compiled as a vertex shader, fragment shader, or other future-defined shader type."</div></div><div><br></div><div>So I guess any further additions to the type restriction shall be drafted in a later spec</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 18, 2016 at 9:52 PM, Gerallt Franke <span dir="ltr"><<a href="mailto:geralltf@gmail.com" target="_blank">geralltf@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi could someone fill me in on what support there is for tessellation shaders? </div><div><br></div><div><br>I understand that WebGL / OpenGL ES 2.0 does not support the advanced capabilities of OpenGL 4.x, X3DOM is very much in this space as it is JavaScript based, however for the sake of what may or may not be is there something in X3D 3.3 or 4.x specification?</div><div><br></div><div>If X3D was embedded directly into every browser like SVG is, then surely OpenGL 4 or later could be accessed?</div><div><br>An example of the behaviour I am looking for is this output:</div><div><a href="https://github.com/RealityDaemon/x3d-finely-sharpened/raw/master/screenshots/screenshot1.png" target="_blank">https://github.com/RealityDaemon/x3d-finely-sharpened/raw/master/screenshots/screenshot1.png</a><br></div><div><br></div><div>Maybe Tessellation ShaderPart Type like this:<br><ShaderPart type='TESS_CONTROL' >#version 420 core...shader here</ShaderPart><br></div><div><br></div><div><br></div><div><br></div><div>See attached X3D Scene with example tessellation shaders or take a quick look below:  <br><br><br>Many thanks,</div><div><br></div><div><br></div><div>Gerallt<br><br><br><?xml version="1.0" encoding="UTF-8"?></div><div><!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "<a href="http://www.web3d.org/specifications/x3d-3.3.dtd" target="_blank">http://www.web3d.org/specifications/x3d-3.3.dtd</a>"></div><div><X3D profile='Interchange' version='3.3' xmlns:xsd='<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>' xsd:noNamespaceSchemaLocation='<a href="http://www.web3d.org/specifications/x3d-3.3.xsd" target="_blank">http://www.web3d.org/specifications/x3d-3.3.xsd</a>'></div><div>  <head></div><div>    <meta content='Icosahedron-tessellate.x3d' name='title'/></div><div>    <meta content='Icosahedron shape composed using IndexedTriangleSet or IndexedFaceSet node with tesselation shader for X3D spec consideration' name='description'/></div><div>    <meta content='Gerallt Franke' name='creator'/></div><div>    <meta content='18 June 2016' name='created'/></div><div>    <meta content='Recommended browser for viewing is x3d-finely-sharpened' name='X3DBrowser'/></div><div>    <meta content='GPLv3' name='License'/></div><div>  </head></div><div>  <Scene></div><div>    <Shape></div><div><span style="white-space:pre-wrap">          </span><IndexedTriangleSet solid="false" index="2 1 0  3 2 0  4 3 0  5 4 0  1 5 0  11 6 7  11 7 8  11 8 9  11 9 10  11 10 6  1 2 6  2 3 7  3 4 8  4 5 9  5 1 10  2  7 6  3  8 7  4  9 8  5 10 9  1 6 10  " </div><div><span style="white-space:pre-wrap">                                              </span>></div><div><span style="white-space:pre-wrap">                     </span><Coordinate point="0.000f 0.000f 1.000f, 0.894f 0.000f 0.447f, 0.276f 0.851f 0.447f, -0.724f 0.526f 0.447f, -0.724f -0.526f 0.447f, 0.276f -0.851f 0.447f, 0.724f 0.526f -0.447f, -0.276f 0.851f -0.447f, -0.894f 0.000f -0.447f, -0.276f -0.851f -0.447f, 0.724f -0.526f -0.447f, 0.000f 0.000f -1.000f " /></div><div><span style="white-space:pre-wrap">            </span></IndexedTriangleSet></div><div><span style="white-space:pre-wrap">              </span></div><div><span style="white-space:pre-wrap">         </span><Appearance> </div><div><span style="white-space:pre-wrap">                     </span><Material diffuseColor='0 1.0 1.0' /></div><div><span style="white-space:pre-wrap">                      </span><ImageTexture url='"spectrum.jpg"'/></div><div><span style="white-space:pre-wrap">                     </span></div><div><span style="white-space:pre-wrap">                 </span><ComposedShader language='GLSL'></div><div><span style="white-space:pre-wrap">                           </span><field accessType='inputOnly' name='TessLevelInner' type='SFFloat' value="3"/></div><div><span style="white-space:pre-wrap">                           </span><field accessType='inputOnly' name='TessLevelOuter' type='SFFloat' value="2" /></div><div><span style="white-space:pre-wrap">                          </span></div><div><span style="white-space:pre-wrap">                         </span></div><div><span style="white-space:pre-wrap">                         </span><ShaderPart type='VERTEX' url='data:text/plain</div><div><span style="white-space:pre-wrap">                            </span>..... ' /></div><div><span style="white-space:pre-wrap">                                        </span>  </div><div><span style="white-space:pre-wrap">                              </span><ShaderPart type='TESS_CONTROL' url='data:text/plain</div><div><span style="white-space:pre-wrap">                              </span>..... ' /></div><div><span style="white-space:pre-wrap">                                </span><ShaderPart type='TESS_EVAL' url='data:text/plain</div><div><span style="white-space:pre-wrap">                         </span>..... ' /></div><div><span style="white-space:pre-wrap">                                </span><ShaderPart type='FRAGMENT' url='data:text/plain</div><div><span style="white-space:pre-wrap">                          </span>..... ' /></div><div><span style="white-space:pre-wrap">                        </span></ComposedShader></div><div><span style="white-space:pre-wrap">          </span></Appearance></div><div>    </Shape></div><div>  </Scene></div><div></X3D></div></div>
</blockquote></div><br></div>