<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 4.0//EN" "https://www.web3d.org/specifications/x3d-4.0.dtd">
<X3D profile='Interchange' version='4.0' xmlns:xsd='https://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-4.0.xsd'>
  <head>
    <component level='2' name='Shape'/>
    <meta content='PhysicalMaterialNormalMap.x3d' name='title'/>
    <meta content='PhysicalMaterialNormalMap.blend' name='reference'/>
    <meta content='Example of PhysicalMaterial node to give appearance of brass metal, converted from Blender source. This example material uses normal map defined by ImageTexture to show indentations. This file was generated from a Blender scene exported to glTF, then converted to X3D by Castle Model Viewer. Additional editing by X3D-Edit to achieve conformance with X3D V4' name='description'/>
    <meta content='Vincent Marchetti' name='creator'/>
    <meta content='13 December 2025' name='created'/>
    <meta content='20 December 2025' name='modified'/>
    <meta content='Blender 4.2 https://www.blender.org' name='generator'/>
    <meta content='castle-model-viewer, https://castle-engine.io/castle-model-viewer' name='generator'/>
    <meta content='X3D-Edit 4.0, https://www.web3d.org/x3d/tools/X3D-Edit' name='generator'/>
    <meta content='PhysicalMaterialNormalMap.glb' name='source'/>
    <meta content='https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/Conversions/PhysicalMaterialNormalMap.x3d' name='identifier'/>
    <meta content='https://www.web3d.org/x3d/content/examples/license.html' name='license'/>
  </head>
  <Scene>
    <Transform DEF='CastleEncoded_Shape_IndexedFaceSet46001'>
      <Group DEF='CastleEncoded_Shape_IndexedFaceSet46001_2'>
        <Transform scale='0.4 0.4 0.4'>
          <Shape DEF='CastleEncoded_Shape_IndexedFaceSet46001_Primitive0' bboxSize='16 9 0'>
            <Appearance DEF='dimpled_brass' alphaMode='OPAQUE'>
              <PhysicalMaterial baseColor='0.7529 0.5332 0.1559' metallic='0.80179' normalTextureMapping='TEXCOORD_0' roughness='0.1491'>
                <ImageTexture DEF='normal_map_dimples' containerField='normalTexture' url='"normal_map_dimples.png" "http://www.example.com/normal_map_dimples.png"'>
                  <TextureProperties generateMipMaps='true' magnificationFilter='AVG_PIXEL' minificationFilter='AVG_PIXEL_AVG_MIPMAP'/>
                </ImageTexture>
              </PhysicalMaterial>
            </Appearance>
            <IndexedTriangleSet index='0 1 3 0 3 2' solid='false'>
              <Coordinate point='-8 -4.5 0 8 -4.5 0 -8 4.5 0 8 4.5 0'/>
              <MultiTextureCoordinate>
                <TextureCoordinate mapping='TEXCOORD_0' point='4 1 0 1 4 -1.25 0 -1.25'/>
              </MultiTextureCoordinate>
            </IndexedTriangleSet>
          </Shape>
        </Transform>
      </Group>
    </Transform>
  </Scene>
</X3D>