.setMaterial(x3dpsail.Material().setDiffuseColor(x3dpsail.SFColor(0.7,0.7,0.7)).setSpecularColor(x3dpsail.SFColor(0.5,0.5,0.5))) .setTexture(x3dpsail.ComposedCubeMapTexture().setDEF(x3dpsail.SFString("texture")) .setBack(x3dpsail.ImageTexture().setDEF(x3dpsail.SFString("backShader")).setUrl(x3dpsail.MFString(["../resources/images/all_probes/beach_cross/beach_back.png","https://coderextreme.net/X3DJSONLD/images/all_probes/beach_cross/beach_back.png"]))) .setBottom(x3dpsail.ImageTexture().setDEF(x3dpsail.SFString("bottomShader")).setUrl(x3dpsail.MFString(["../resources/images/all_probes/beach_cross/beach_bottom.png","https://coderextreme.net/X3DJSONLD/images/all_probes/beach_cross/beach_bottom.png"]))) .setFront(x3dpsail.ImageTexture().setDEF(x3dpsail.SFString("frontShader")).setUrl(x3dpsail.MFString(["../resources/images/all_probes/beach_cross/beach_front.png","https://coderextreme.net/X3DJSONLD/images/all_probes/beach_cross/beach_front.png"]))) .setLeft(x3dpsail.ImageTexture().setDEF(x3dpsail.SFString("leftShader")).setUrl(x3dpsail.MFString(["../resources/images/all_probes/beach_cross/beach_left.png","https://coderextreme.net/X3DJSONLD/images/all_probes/beach_cross/beach_left.png"]))) .setRight(x3dpsail.ImageTexture().setDEF(x3dpsail.SFString("rightShader")).setUrl(x3dpsail.MFString(["../resources/images/all_probes/beach_cross/beach_right.png","https://coderextreme.net/X3DJSONLD/images/all_probes/beach_cross/beach_right.png"]))) .setTop(x3dpsail.ImageTexture().setDEF(x3dpsail.SFString("topShader")).setUrl(x3dpsail.MFString(["../resources/images/all_probes/beach_cross/beach_top.png","https://coderextreme.net/X3DJSONLD/images/all_probes/beach_cross/beach_top.png"])))) .addShaders(x3dpsail.ComposedShader().setDEF(x3dpsail.SFString("x3dom")).setLanguage(x3dpsail.SFString("GLSL")) .addField(x3dpsail.field().setName(x3dpsail.SFString("cube")).setType(x3dpsail.SFString("SFInt32")).setAccessType(x3dpsail.SFString("inputOutput")).setValue(x3dpsail.SFString("0"))) .addField(x3dpsail.field().setName(x3dpsail.SFString("chromaticDispertion")).setAccessType(x3dpsail.SFString("initializeOnly")).setType(x3dpsail.SFString("SFVec3f")).setValue(x3dpsail.SFString("0.98 1 1.033"))) .addField(x3dpsail.field().setName(x3dpsail.SFString("bias")).setType(x3dpsail.SFString("SFFloat")).setAccessType(x3dpsail.SFString("inputOutput")).setValue(x3dpsail.SFString("0.5"))) .addField(x3dpsail.field().setName(x3dpsail.SFString("scale")).setType(x3dpsail.SFString("SFFloat")).setAccessType(x3dpsail.SFString("inputOutput")).setValue(x3dpsail.SFString("0.5"))) .addField(x3dpsail.field().setName(x3dpsail.SFString("power")).setType(x3dpsail.SFString("SFFloat")).setAccessType(x3dpsail.SFString("inputOutput")).setValue(x3dpsail.SFString("2"))) .addField(x3dpsail.field().setName(x3dpsail.SFString("a")).setType(x3dpsail.SFString("SFFloat")).setAccessType(x3dpsail.SFString("inputOutput")).setValue(x3dpsail.SFString("10"))) .addField(x3dpsail.field().setName(x3dpsail.SFString("b")).setType(x3dpsail.SFString("SFFloat")).setAccessType(x3dpsail.SFString("inputOutput")).setValue(x3dpsail.SFString("1"))) .addField(x3dpsail.field().setName(x3dpsail.SFString("c")).setType(x3dpsail.SFString("SFFloat")).setAccessType(x3dpsail.SFString("inputOutput")).setValue(x3dpsail.SFString("20"))) .addField(x3dpsail.field().setName(x3dpsail.SFString("d")).setType(x3dpsail.SFString("SFFloat")).setAccessType(x3dpsail.SFString("inputOutput")).setValue(x3dpsail.SFString("20"))) .addField(x3dpsail.field().setName(x3dpsail.SFString("tdelta")).setType(x3dpsail.SFString("SFFloat")).setAccessType(x3dpsail.SFString("inputOutput")).setValue(x3dpsail.SFString("0"))) .addField(x3dpsail.field().setName(x3dpsail.SFString("pdelta")).setType(x3dpsail.SFString("SFFloat")).setAccessType(x3dpsail.SFString("inputOutput")).setValue(x3dpsail.SFString("0"))) #field name='cube' type='SFNode' accessType=\"inputOutput\"> <ComposedCubeMapTexture USE=\"texture\"/> </field .addParts(x3dpsail.ShaderPart().setUrl(x3dpsail.MFString(["../shaders/x3dom_flowers_chromatic.vs","https://coderextreme.net/X3DJSONLD/shaders/x3dom_flowers_chromatic.vs"])).setType(x3dpsail.SFString("VERTEX"))) .addParts(x3dpsail.ShaderPart().setUrl(x3dpsail.MFString(["../shaders/pc_bubbles.fs","https://coderextreme.net/X3DJSONLD/shaders/common.fs"])).setType(x3dpsail.SFString("FRAGMENT")))) .addShaders(x3dpsail.ComposedShader().setDEF(x3dpsail.SFString("cobweb")).setLanguage(x3dpsail.SFString("GLSL")) .addField(x3dpsail.field().setName(x3dpsail.SFString("cube")).setType(x3dpsail.SFString("SFNode")).setAccessType(x3dpsail.SFString("inputOutput")) .addChild(x3dpsail.ComposedCubeMapTexture().setUSE(x3dpsail.SFString("texture")))) .addField(x3dpsail.field().setName(x3dpsail.SFString("chromaticDispertion")).setAccessType(x3dpsail.SFString("initializeOnly")).setType(x3dpsail.SFString("SFVec3f")).setValue(x3dpsail.SFString("0.98 1 1.033"))) .addField(x3dpsail.field().setName(x3dpsail.SFString("bias")).setType(x3dpsail.SFString("SFFloat")).setAccessType(x3dpsail.SFString("inputOnly")).setValue(x3dpsail.SFString("0.5"))) .addField(x3dpsail.field().setName(x3dpsail.SFString("scale")).setType(x3dpsail.SFString("SFFloat")).setAccessType(x3dpsail.SFString("inputOnly")).setValue(x3dpsail.SFString("0.5"))) .addField(x3dpsail.field().setName(x3dpsail.SFString("power")).setType(x3dpsail.SFString("SFFloat")).setAccessType(x3dpsail.SFString("inputOnly")).setValue(x3dpsail.SFString("2"))) .addField(x3dpsail.field().setName(x3dpsail.SFString("a")).setType(x3dpsail.SFString("SFFloat")).setAccessType(x3dpsail.SFString("inputOnly")).setValue(x3dpsail.SFString("10")))
ImageTexture24.setUrl([ "../resources/images/all_probes/stpeters_cross/stpeters_right.png", "https://coderextreme.net/X3DJSONLD/images/all_probes/stpeters_cross/stpeters_right.png" ]) ComposedCubeMapTexture19.setRight(ImageTexture24) ImageTexture25 = x3dpsail.ImageTexture() ImageTexture25.setUrl([ "../resources/images/all_probes/stpeters_cross/stpeters_top.png", "https://coderextreme.net/X3DJSONLD/images/all_probes/stpeters_cross/stpeters_top.png" ]) ComposedCubeMapTexture19.setTop(ImageTexture25) Appearance17.setTexture(ComposedCubeMapTexture19) ComposedShader26 = x3dpsail.ComposedShader() ComposedShader26.setDEF("shader") ComposedShader26.setLanguage("GLSL") field27 = x3dpsail.field() field27.setName("cube") field27.setType("SFInt32") field27.setAccessType("inputOutput") field27.setValue("0") ComposedShader26.addField(field27) field28 = x3dpsail.field() field28.setName("chromaticDispertion") field28.setType("SFVec3f") field28.setAccessType("inputOutput") field28.setValue("0.98 1 1.033")
ImageTexture23.setUrl([ "resources/images/bRT.png", "https://coderextreme.net/X3DJSONLD/src/main/resources/images/bRT.png" ]) ComposedCubeMapTexture18.setRight(ImageTexture23) ImageTexture24 = x3dpsail.ImageTexture() ImageTexture24.setUrl([ "resources/images/bTP.png", "https://coderextreme.net/X3DJSONLD/src/main/resources/images/bTP.png" ]) ComposedCubeMapTexture18.setTop(ImageTexture24) Appearance16.setTexture(ComposedCubeMapTexture18) ComposedShader25 = x3dpsail.ComposedShader() ComposedShader25.setLanguage("GLSL") field26 = x3dpsail.field() field26.setName("chromaticDispertion") field26.setAccessType("inputOutput") field26.setType("SFVec3f") field26.setValue("0.98 1 1.033") ComposedShader25.addField(field26) field27 = x3dpsail.field() field27.setName("cube") field27.setType("SFNode") field27.setAccessType("inputOutput") ComposedCubeMapTexture28 = x3dpsail.ComposedCubeMapTexture() ComposedCubeMapTexture28.setUSE("texture")
ImageTexture23.setUrl([ "../resources/images/all_probes/stpeters_cross/stpeters_right.png", "https://coderextreme.net/X3DJSONLD/images/all_probes/stpeters_cross/stpeters_right.png" ]) ComposedCubeMapTexture18.setRight(ImageTexture23) ImageTexture24 = x3dpsail.ImageTexture() ImageTexture24.setUrl([ "../resources/images/all_probes/stpeters_cross/stpeters_top.png", "https://coderextreme.net/X3DJSONLD/images/all_probes/stpeters_cross/stpeters_top.png" ]) ComposedCubeMapTexture18.setTop(ImageTexture24) Appearance16.setTexture(ComposedCubeMapTexture18) ComposedShader25 = x3dpsail.ComposedShader() ComposedShader25.setLanguage("GLSL") field26 = x3dpsail.field() field26.setName("xxxcube") field26.setType("SFInt32") field26.setAccessType("inputOutput") field26.setValue("0") ComposedShader25.addField(field26) field27 = x3dpsail.field() field27.setName("cube") field27.setType("SFNode") field27.setAccessType("inputOutput") ComposedCubeMapTexture28 = x3dpsail.ComposedCubeMapTexture() ComposedCubeMapTexture28.setUSE("texture")
"../resources/images/all_probes/beach_cross/beach_right.png", "https://coderextreme.net/images/all_probes/beach_cross/beach_right.png" ]) ComposedCubeMapTexture16.setRight(ImageTexture21) ImageTexture22 = x3dpsail.ImageTexture() ImageTexture22.setDEF("topShader") ImageTexture22.setUrl([ "../resources/images/all_probes/beach_cross/beach_top.png", "https://coderextreme.net/images/all_probes/beach_cross/beach_top.png" ]) ComposedCubeMapTexture16.setTop(ImageTexture22) Appearance14.setTexture(ComposedCubeMapTexture16) ComposedShader23 = x3dpsail.ComposedShader() ComposedShader23.setDEF("cobweb") ComposedShader23.setLanguage("GLSL") #http://hypertextbook.com/facts/2005/JustinChe.shtml field24 = x3dpsail.field() field24.setName("chromaticDispertion") field24.setAccessType("inputOutput") field24.setType("SFVec3f") field24.setValue("0.98 1 1.033") ComposedShader23.addField(field24) field25 = x3dpsail.field() field25.setName("cube") field25.setAccessType("inputOutput") field25.setType("SFInt32") field25.setValue("0")
.addChild(x3dpsail.Transform() .addChild(x3dpsail.Shape() .setAppearance(x3dpsail.Appearance() .setMaterial(x3dpsail.Material().setDiffuseColor(x3dpsail.SFColor(0.7,0.7,0.7)).setSpecularColor(x3dpsail.SFColor(0.5,0.5,0.5))) .setTexture(x3dpsail.ComposedCubeMapTexture() .setBack(x3dpsail.ImageTexture().setDEF(x3dpsail.SFString("backShader")).setUrl(x3dpsail.MFString(["../resources/images/all_probes/beach_cross/beach_back.png","https://coderextreme.net/images/all_probes/beach_cross/beach_back.png"]))) .setBottom(x3dpsail.ImageTexture().setDEF(x3dpsail.SFString("bottomShader")).setUrl(x3dpsail.MFString(["../resources/images/all_probes/beach_cross/beach_bottom.png","https://coderextreme.net/images/all_probes/beach_cross/beach_bottom.png"]))) .setFront(x3dpsail.ImageTexture().setDEF(x3dpsail.SFString("frontShader")).setUrl(x3dpsail.MFString(["../resources/images/all_probes/beach_cross/beach_front.png","https://coderextreme.net/images/all_probes/beach_cross/beach_front.png"]))) .setLeft(x3dpsail.ImageTexture().setDEF(x3dpsail.SFString("leftShader")).setUrl(x3dpsail.MFString(["../resources/images/all_probes/beach_cross/beach_left.png","https://coderextreme.net/images/all_probes/beach_cross/beach_left.png"]))) .setRight(x3dpsail.ImageTexture().setDEF(x3dpsail.SFString("rightShader")).setUrl(x3dpsail.MFString(["../resources/images/all_probes/beach_cross/beach_right.png","https://coderextreme.net/images/all_probes/beach_cross/beach_right.png"]))) .setTop(x3dpsail.ImageTexture().setDEF(x3dpsail.SFString("topShader")).setUrl(x3dpsail.MFString(["../resources/images/all_probes/beach_cross/beach_top.png","https://coderextreme.net/images/all_probes/beach_cross/beach_top.png"])))) .addShaders(x3dpsail.ComposedShader().setDEF(x3dpsail.SFString("cobweb")).setLanguage(x3dpsail.SFString("GLSL")) #http://hypertextbook.com/facts/2005/JustinChe.shtml .addField(x3dpsail.field().setName(x3dpsail.SFString("chromaticDispertion")).setAccessType(x3dpsail.SFString("inputOutput")).setType(x3dpsail.SFString("SFVec3f")).setValue(x3dpsail.SFString("0.98 1 1.033"))) .addField(x3dpsail.field().setName(x3dpsail.SFString("cube")).setAccessType(x3dpsail.SFString("inputOutput")).setType(x3dpsail.SFString("SFInt32")).setValue(x3dpsail.SFString("0"))) .addField(x3dpsail.field().setName(x3dpsail.SFString("bias")).setAccessType(x3dpsail.SFString("inputOutput")).setType(x3dpsail.SFString("SFFloat")).setValue(x3dpsail.SFString("0.5"))) .addField(x3dpsail.field().setName(x3dpsail.SFString("scale")).setAccessType(x3dpsail.SFString("inputOutput")).setType(x3dpsail.SFString("SFFloat")).setValue(x3dpsail.SFString("0.5"))) .addField(x3dpsail.field().setName(x3dpsail.SFString("power")).setAccessType(x3dpsail.SFString("inputOutput")).setType(x3dpsail.SFString("SFFloat")).setValue(x3dpsail.SFString("2"))) .addParts(x3dpsail.ShaderPart().setUrl(x3dpsail.MFString(["../shaders/cobweb.vs","https://coderextreme.net/X3DJSONLD/shaders/cobweb.vs"])).setType(x3dpsail.SFString("VERTEX"))) .addParts(x3dpsail.ShaderPart().setUrl(x3dpsail.MFString(["../shaders/mix.fs","https://coderextreme.net/X3DJSONLD/shaders/mix.fs"])).setType(x3dpsail.SFString("FRAGMENT")))) .addShaders(x3dpsail.ComposedShader().setDEF(x3dpsail.SFString("x3dom")).setLanguage(x3dpsail.SFString("GLSL")) #http://hypertextbook.com/facts/2005/JustinChe.shtml .addField(x3dpsail.field().setName(x3dpsail.SFString("chromaticDispertion")).setAccessType(x3dpsail.SFString("inputOutput")).setType(x3dpsail.SFString("SFVec3f")).setValue(x3dpsail.SFString("0.98 1 1.033"))) .addField(x3dpsail.field().setName(x3dpsail.SFString("cube")).setAccessType(x3dpsail.SFString("inputOutput")).setType(x3dpsail.SFString("SFInt32")).setValue(x3dpsail.SFString("0"))) .addField(x3dpsail.field().setName(x3dpsail.SFString("bias")).setAccessType(x3dpsail.SFString("inputOutput")).setType(x3dpsail.SFString("SFFloat")).setValue(x3dpsail.SFString("0.5"))) .addField(x3dpsail.field().setName(x3dpsail.SFString("scale")).setAccessType(x3dpsail.SFString("inputOutput")).setType(x3dpsail.SFString("SFFloat")).setValue(x3dpsail.SFString("0.5"))) .addField(x3dpsail.field().setName(x3dpsail.SFString("power")).setAccessType(x3dpsail.SFString("inputOutput")).setType(x3dpsail.SFString("SFFloat")).setValue(x3dpsail.SFString("2"))) .addParts(x3dpsail.ShaderPart().setUrl(x3dpsail.MFString(["../shaders/x3dom.vs","https://coderextreme.net/X3DJSONLD/shaders/x3dom.vs"])).setType(x3dpsail.SFString("VERTEX"))) .addParts(x3dpsail.ShaderPart().setUrl(x3dpsail.MFString(["../shaders/mix.fs","https://coderextreme.net/X3DJSONLD/shaders/mix.fs"])).setType(x3dpsail.SFString("FRAGMENT"))))) .setGeometry(x3dpsail.Sphere().setRadius(x3dpsail.SFFloat(30))))
.addShaders(x3dpsail.ComposedShader().setDEF( x3dpsail.SFString("x3dom") ).setLanguage(x3dpsail.SFString("GLSL")).addField( x3dpsail.field().setName(x3dpsail.SFString("cube")) .setType(x3dpsail.SFString("SFInt32")).setAccessType( x3dpsail.SFString("inputOutput")).setValue( x3dpsail.SFString("0")) ).addField(x3dpsail.field().setName( x3dpsail.SFString("chromaticDispertion") ).setType(x3dpsail.SFString("SFVec3f")).setAccessType( x3dpsail.SFString("inputOutput") ).setValue(x3dpsail.SFString("0.98 1 1.033"))).addField( x3dpsail.field().setName(x3dpsail.SFString("bias")). setType( x3dpsail.SFString("SFFloat") ).setAccessType(x3dpsail.SFString("inputOutput")) .setValue(x3dpsail.SFString("0.5")) ).addField(x3dpsail.field().setName( x3dpsail.SFString("scale") ).setType( x3dpsail.SFString("SFFloat") ).setAccessType( x3dpsail.SFString("inputOutput") ).setValue( x3dpsail.SFString("0.5") )).addField(x3dpsail.field().setName( x3dpsail.SFString("power") ).setType( x3dpsail.SFString("SFFloat") ).setAccessType( x3dpsail.SFString("inputOutput") ).setValue( x3dpsail.SFString("2") )).addParts(x3dpsail.ShaderPart().setUrl( x3dpsail.MFString([ "../shaders/x3dom.vs", "https://coderextreme.net/X3DJSONLD/shaders/x3dom.vs" ]) ).setType( x3dpsail.SFString("VERTEX") )).addParts(x3dpsail.ShaderPart().setUrl( x3dpsail .MFString([ "../shaders/pc_bubbles.fs", "https://coderextreme.net/X3DJSONLD/shaders/pc_bubbles.fs" ])).setType(x3dpsail.SFString("FRAGMENT")))).
ComposedCubeMapTexture20.setRight(ImageTexture25) ImageTexture26 = x3dpsail.ImageTexture() ImageTexture26.setUrl([ "../resources/images/all_probes/stpeters_cross/stpeters_top.png", "https://coderextreme.net/X3DJSONLD/images/all_probes/stpeters_cross/stpeters_top.png" ]) ComposedCubeMapTexture20.setTop(ImageTexture26) Appearance18.setTexture(ComposedCubeMapTexture20) #<ProgramShader DEF='ProgramShader' containerField='shaders' language='GLSL'> <ShaderProgram url='\"../shaders/freewrl.vs\" \"https://coderextreme.net/X3DJSONLD/shaders/freewrl.vs\"' containerField='programs' type='VERTEX'> <field name='chromaticDispertion' accessType='initializeOnly' type='SFVec3f' value='0.98 1 1.033'/> <field name='bias' accessType='initializeOnly' type='SFFloat' value='0.5'/> <field name='scale' accessType='initializeOnly' type='SFFloat' value='0.5'/> <field name='power' accessType='initializeOnly' type='SFFloat' value='2'/> </ShaderProgram> <ShaderProgram url='\"../shaders/freewrl.fs\" \"https://coderextreme.net/X3DJSONLD/shaders/freewrl.fs\"' containerField='programs' type='FRAGMENT'/> </ProgramShader> #<ComposedShader language='GLSL'> <field name='chromaticDispertion' accessType='initializeOnly' type='SFVec3f' value='0.98 1 1.033'></field> <field name='fw_Texture_unit0' type='SFNode' accessType=\"initializeOnly\"> <ComposedCubeMapTexture USE=\"texture\"></ComposedCubeMapTexture> </field> <field name='bias' accessType='initializeOnly' type='SFFloat' value='0.5'></field> <field name='scale' accessType='initializeOnly' type='SFFloat' value='0.5'></field> <field name='power' accessType='initializeOnly' type='SFFloat' value='2'></field> <ShaderPart url='\"../shaders/contact.vs\" \"https://coderextreme.net/X3DJSONLD/shaders/contact.vs\"' type=\"VERTEX\" containerField='parts'></ShaderPart> <ShaderPart url='\"../shaders/common.fs\" \"https://coderextreme.net/X3DJSONLD/shaders/common.fs\"' containerField='parts' type='FRAGMENT'></ShaderPart> </ComposedShader> #<ComposedShader language='GLSL'> <field name='chromaticDispertion' accessType='inputOutput' type='SFVec3f' value='0.98 1 1.033'></field> <field name='cube' type='SFNode' accessType=\"inputOutput\"> <ComposedCubeMapTexture USE=\"texture\"></ComposedCubeMapTexture> </field> <field name='bias' accessType='inputOutput' type='SFFloat' value='0.5'></field> <field name='scale' accessType='inputOutput' type='SFFloat' value='0.5'></field> <field name='power' accessType='inputOutput' type='SFFloat' value='2'></field> <ShaderPart url='\"../shaders/octaga.vs\" \"https://coderextreme.net/X3DJSONLD/shaders/octaga.vs\"' type=\"VERTEX\" containerField='parts'></ShaderPart> <ShaderPart url='\"../shaders/common.fs\" \"https://coderextreme.net/X3DJSONLD/shaders/common.fs\"' containerField='parts' type='FRAGMENT'></ShaderPart> </ComposedShader> #<ComposedShader language='GLSL'> <field name='chromaticDispertion' accessType='initializeOnly' type='SFVec3f' value='0.98 1 1.033'></field> <field name='cube' accessType='initializeOnly' type='SFInt32' value='0'></field> <field name='bias' accessType='initializeOnly' type='SFFloat' value='0.5'></field> <field name='scale' accessType='initializeOnly' type='SFFloat' value='0.5'></field> <field name='power' accessType='initializeOnly' type='SFFloat' value='2'></field> <ShaderPart url='\"../shaders/instant.vs\" \"https://coderextreme.net/X3DJSONLD/shaders/instant.vs\"' type=\"VERTEX\" containerField='parts'></ShaderPart> <ShaderPart url='\"../shaders/common.fs\" \"https://coderextreme.net/X3DJSONLD/shaders/common.fs\"' containerField='parts' type='FRAGMENT'></ShaderPart> </ComposedShader> # ComposedShader27 = x3dpsail.ComposedShader() ComposedShader27.setLanguage("GLSL") field28 = x3dpsail.field() field28.setName("chromaticDispertion") field28.setAccessType("inputOutput") field28.setType("SFVec3f") field28.setValue("0.98 1 1.033") ComposedShader27.addField(field28) field29 = x3dpsail.field() field29.setName("cube") field29.setType("SFNode") field29.setAccessType("inputOutput") ComposedCubeMapTexture30 = x3dpsail.ComposedCubeMapTexture() ComposedCubeMapTexture30.setUSE("texture")