#VRML V2.0 utf8

# Simple test of Viewpoint node.
# I also add here WorldInfo with a title --- it should be used
# by VRML browsers.

Group{
  children [
    # Camera settings "encoded" in the VRML declaration below :
    # direction 0 0.700684607028961 0.000241928064497
    # up 0 -0.000345317530446 0.999999940395355
    # gravityUp 0 0 1
    Transform {
      translation 0.004618315026164 -94.837326049804687 6.33106803894043
      rotation 1 0 0 1.570796370506287
      children Viewpoint {
        position 0 0 0 # camera position is expressed by translation
        orientation 0 0 1 0
      }
    }

    NavigationInfo {
      type "WALK"
      speed 20
      avatarSize [ 0.5 4 ]
    }

    WorldInfo {
      title "The Castle model"
    }

    Transform {
      rotation 1 0 0 1.57
      children Background {
        backUrl   "skies/foggy_sky_back.ppm"
        bottomUrl "skies/foggy_sky_bottom.ppm"
        frontUrl  "skies/foggy_sky_front.ppm"
        leftUrl   "skies/foggy_sky_left.ppm"
        rightUrl  "skies/foggy_sky_right.ppm"
        topUrl    "skies/foggy_sky_top.ppm"
      }
    }

    DEF MyShaderEffect Effect {
      language "GLSL"
      parts EffectPart {
        type "FRAGMENT"
        url "data:text/plain,
        void PLUG_texture_apply(
           inout vec4 fragment_color,
           const in vec3 normal)
        {
           fragment_color.rgb = pow(fragment_color.rgb * 3.0 / 2.0, vec3(3.0));
        }"
      }
    }

    Inline { url "castle_with_lights.wrl" }
  ]
}
